Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
8360 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

oh! Thanks! I will look into it!

Related Posts Besvarelser Visninger Aktivitet
9
apr. 23
145952
6
nov. 17
11380
0
mar. 15
3158
1
apr. 25
1443
2
maj 24
6831