以下是转载内容:
server{ listen 80; server_name odoo9; location / { proxy_pass http://0.0.0.0:8069; 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:8072/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; } }
原文:http://www.cnblogs.com/wcbl/p/6097099.html