`
挪威的幽灵
  • 浏览: 39967 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

V宙斯盾S铁将军V

阅读更多
有两期项目项目挺有意思的,两个项目组的名称一个叫宙斯盾,一个叫铁将军,总的来说是关于https升级的,由于现在项目安全性越来越高,所以一些访问都通过https协议了,虽然配置出了大大小小的问题,但是总算成功了,项目组的环境是linux,服务器是jboss,前端是apache
更改httpd.conf配置
1、增加代理
<IfModule mod_proxy.c>
    ProxyRequests Off
    <Directory proxy:*>
        Order deny,allow
        # Deny from all # by caosir
    </Directory>
</IfModule>
2、监听端口
Listen yyyyyy   老端口
Listen xxxxxx   新端口
3、增加虚拟主机
NameVirtualHost *:xxxxxx
<VirtualHost *:xxxxxx>
    ServerAdmin sa@alibaba-inc.com
    ServerName  host-ip(主机IP)
    DocumentRoot "/home/crm/crm/src/htdocs"

    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+SSLv3:+EXP:+eNULL
    SSLCertificateFile /home/TOOLS/modules/crt/crm.alisoft.com.crt
    SSLCertificateKeyFile /home/TOOLS/modules/crt/crm.alisoft.com.key

    SSLProxyEngine on

    RewriteEngine on
    RewriteLogLevel 3
    RewriteLog   /home/crm/crm/logs/rewrite.log
    RewriteRule ^/$ qbuilder/login.jsp [L,P]
</VirtualHost>

NameVirtualHost *:yyyyyy
<VirtualHost *:yyyyyy>
    ServerAdmin sa@alibaba-inc.com
    ServerName  host-ip(主机IP)
    DocumentRoot "/home/crm/crm/src/htdocs"
    RewriteEngine on
    RewriteLogLevel 3
    RewriteLog   /home/crm/crm/logs/rewrite.log
    RewriteRule !^(.*)/remoting/(.*)$ https://%{SERVER_NAME}:41433/$1 [L,R]
</VirtualHost>


中间出了不少问题,其中端口占用比较常见,apache都起不来,很郁闷
[crm@itrade-4 conf]$ netstat -tln | grep 4300
tcp        0      0 :::4300                     :::*                        LISTEN

KILL
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics