Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
11690 มุมมอง

Hello I'd like to deploy my website using Apache2, my domainname is www.hew-automation.be. I've already made a link from this domainname to my server's IP Address (http://91.183.84.209:8080/). I want to get rid of the port 8080 and also stop displaying the IP address in the browser.

I installed apache2, added following to /etc/apache2/sites-available/odoo.conf:

<VirtualHost *:80>

ServerName hew-automation.be

ServerAlias *.hew-automation.be // Use this if you want dbfillter on subdomain

ErrorLog /var/log/odoo/odoo-error.log

CustomLog /var/log/odoo/odoo-access.log combined

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

ProxyRequests Off

ProxyPass / http://localhost:8080/

ProxyPassReverse / http://localhost:8080/

ProxyVia On

LogLevel warn

</VirtualHost>


Then enabled this with a2ensite, this without any errors.

This is my /etc/odoo-server.conf file:

[options]

admin_passwd = XXXX

db_host = False

db_port = False

db_user = XXXX

db_password = XXXX

addons_path = /opt/odoo/addons

logfile = /var/log/odoo/odoo-server.log

xmlrpc_port = 8068


Now whenever I surf to my IP-address http://91.183.84.209/, it always shows the default page of Apache2, what am I doing wrong here?

Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,
Please we can run odoo on port 80 with the help of Nginx reverse proxy server. Please refer the below links. Hope this will help you.

http://www.technaureus.com/how-to-run-odoo-on-port-80/

http://www.technaureus.com/how-to-setup-nginx-for-odoo/

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Just a typo in the question, the conf file says xmlrpc_port = 8080

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You need to proxypass to port 8068, not 8080. According to your odoo-server.conf file your Odoo instance is listening on port 8068.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 24
6942
0
พ.ค. 19
4337
3
พ.ค. 24
23067
4
พ.ค. 24
9152
0
ต.ค. 23
978