İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8353 Görünümler

I placed odoo directory to /var/www/testodoo.com

and I setup Apache setting at /etc/apache2/sites-available/testodoo.com.conf like below


LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *:80>

    ServerAdmin admin@testodoo.com

    ServerName testodoo.com

    ServerAlias www.testodoo.com

    DocumentRoot /var/www/testodoo.com

    <Directory "/var/www/testodoo.com">

         Options Indexes FollowSymLinks MultiViews

        AllowOverride All

        Order allow,deny

        Allow from all

        Require all granted

    </Directory>

    ProxyPreserveHost On

    ProxyRequests Off

    ProxyPass / http://localhost:8069 retry=0

    ProxyPassReverse / http://localhost:8069

    ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>


and I opened port 8069 using netcat

    nc -l -p 8069

but it says

    Proxy Error

    The proxy server received an invalid response from an upstream server.

    The proxy server could not handle the request GET /.

    Reason: Error reading from remote server


Is there other way to enable Odoo using Apache?


Thank you


Avatar
Vazgeç
En İyi Yanıt

Odoo is a webserver application not a static html site. Please check this guide (but do not use private certificates): https://antiun.github.io/odoo-reverse-proxy-howto/

Avatar
Vazgeç
Üretici

oh! Thanks! I will look into it!

İlgili Gönderiler Cevaplar Görünümler Aktivite
9
Nis 23
145937
6
Kas 17
11374
0
Mar 15
3156
1
Nis 25
1411
2
May 24
6828