[已解决]安装nginx后,在odoo中注销时,url上的端口号自动丢失
-
nginx将8069端口转发给odoo的8091、8095端口。
使用8069端口,能正常操作,除了在注销后。
此时,端口号被自动去掉。只有手动输入
http://localhost:8069/web/login
才会正常。去掉login,或者去掉web/login都会自动删除端口号。这个问题,如何解决?
系统:Ubuntu16.04
odoo版本:10.0odoo的设置为:
xmlrpc_port = 8091 longpolling_port = 8095nginx的default中的80全部改为81,并去掉default_server
server { listen 81; listen [::]:81;新添加设置odoo,内容为:
server{ listen 8069 default_server; #listen [::]:8069 default_server; server_name odoo10; location / { proxy_pass http://0.0.0.0:8091; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /longpolling/ { proxy_pass http://localhost:8095/longpolling/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login