Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
8380 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

oh! Thanks! I will look into it!

Verknüpfte Beiträge Antworten Ansichten Aktivität
9
Apr. 23
145990
6
Nov. 17
11394
0
März 15
3167
1
Apr. 25
1466
2
Mai 24
6856