首页 > 代码库 > odoo 反向代理设置

odoo 反向代理设置

以下是转载内容:

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;
  }  

}

 

odoo 反向代理设置