This question has been flagged
1 Reply
7013 Views

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
Discard
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
Discard
Author

oh! Thanks! I will look into it!