Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Odoo 9 使用nginx配置域名地址 chrome浏览器无法登陆进入系统



  • 安装odoo9,linux,源码安装。使用ngxin配置域名地址,此时如果使用Chome浏览器
    使用:localhost:8069,可以访问登陆界面并顺利登陆
    使用:X.XXX.com,可以访问登陆界面,但是无法登陆进入系统,点击登陆后直接返回登陆界面。
    使用firefox无此问题,可以成功登陆,使用opera也无法登陆。
    请问大家遇到过同样的问题吗?谢谢!
    我的nginx配置如下:

    <br />upstream x.xxx.com{<br />&nbsp; &nbsp; &nbsp; &nbsp; server 127.0.0.1:8069;<br />}<br />server {<br />&nbsp; &nbsp; &nbsp; &nbsp; server_name&nbsp; x.xxx.com;<br />&nbsp; &nbsp; &nbsp; &nbsp; root /usr/local/lib/python2.7/dist-packages/openerp-9.0c_20151202-py2.7.egg/openerp/addons/;<br />&nbsp; &nbsp; &nbsp; &nbsp; listen 80;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; gzip on;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_disable &quot;msie6&quot;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_vary on;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_proxied any;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_comp_level 6;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_buffers 16 8k;<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_http_version 1.1;<br />&nbsp; &nbsp; &nbsp;  #添加一个类型 application/javascript<br />&nbsp; &nbsp; &nbsp; &nbsp; gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; location /{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass [检测到链接无效,已移除] br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; location ~* / {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_cache_valid 200 60m;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_buffering on;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expires 864000;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass [检测到链接无效,已移除] br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_buffering on;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_cache_valid&nbsp; &nbsp; &nbsp;  1d;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expires 1d;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />
    


  • 终于搞定了,把这句删掉:
    expires 864000;