Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

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

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

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

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

    Debian 5.x下,apache+ssl proxy的配置

    Odoo 安装指南
    2
    3
    5548
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      d_yang last edited by

      启用ssl模块:

      a2enmod ssl
      

      生成证书:

      apache2openssl req -x509 -newkey rsa:1024 -keyout apache.pem -out apache.pem -nodes -days 9999
      

      输入证书信息若干...

      或者可以这样:
      openssl req [email protected] -new -x509 -days 3650 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

      copy出一个ssl的配置(懒的写site配置文件了):

      cp /etc/apache2/sites-enabled/000-default /etc/apache2/sites-enabled/000-ssl
      

      vim之, 修改端口为[size=99px]ServerSignature On
      SSLEngine On
      SSLCertificateFile /your-path/apache.pem [/code]

      重启:

      /etc/init.d/apache2 restart
      

      试访问:

      [检测到链接无效,已移除]

      设置proxy:
      启用两个模块(必须的):
      [code]
      a2enmod proxy
      a2enmod proxy_http
      [/code]

      编辑刚才的文件:

      vim sitess-enabled/000-ssl
      

      添加:
      [code]
      ProxyPass / localhost:8080/
      ProxyPassReverse / localhost:8080/
      [/code]

      允许访问:

      vim /etc/apache2/mods-available/proxy.conf
      

      修改为:

      Allow from all
      

      重启apache2

      /etc/init.d/apache2 restart
      

      访问:

      [检测到链接无效,已移除]

      the end.

      [[i] 本帖最后由 d_yang 于 2010-4-15 11:19 编辑 [/i]]

      1 Reply Last reply Reply Quote 0
      • mrshelly
        mrshelly last edited by

        嗯... 不错....

        1 Reply Last reply Reply Quote 0
        • First post
          Last post