Skip to Content
Menú
This question has been flagged
1 Respondre
8255 Vistes

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
Descartar
Best Answer

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

oh! Thanks! I will look into it!

Related Posts Respostes Vistes Activitat
9
d’abr. 23
145664
6
de nov. 17
11250
0
de març 15
3089
1
d’abr. 25
1133
2
de maig 24
6610