apache 虚拟主机配置2


    ProxyPreserveHost On
    ServerName lt3g.chainbuy.cn
    RewriteEngine On
    RewriteRule  ^/rudd-web(.*) http://132.35.76.52:9081/rudd-web$1 [P,L]

    RewriteRule ^/(.*) http://esales.10010.com/$1 [P,L]
    ProxyPassReverseCookieDomain 10010.com lt3g.chainbuy.cn
    ProxyPassReverseCookiePath / /
  
      ProxyHTMLEnable On
       ProxyHTMLExtended On
       ProxyHTMLMeta On
       ProxyHTMLDoctype XHTML Legacy
       ProxyHTMLURLMap http://132.35.76.52:9081 http://lt3g.chainbuy.cn:8081 e
       RequestHeader    unset  Accept-Encoding
  

  ErrorLog "|/home/tztrans/apache2x/bin/rotatelogs /home/tztrans/apache2x/logs/10010.com-error_%y-%m-%d.log 86400"
  CustomLog "|/home/tztrans/apache2x/bin/rotatelogs /home/tztrans/apache2x/logs/10010-access_%y-%m-%d.log 86400" common



    ProxyPreserveHost On
    ServerName www.g.com
    RewriteEngine on
    RewriteRule ^/m(.*) http://127.0.0.1:8080/m$1 [L,R=301,P,NC]
    RewriteRule (.*) http://127.0.0.1:8080/$1 [L,R=301,P,NC]
    ErrorLog "d:/dummy-host2.javaen.com-error.log"
    CustomLog "d:/dummy-host2.javaen.com-access.log" common



    ProxyPreserveHost On
    ServerName www.g.com  
    ProxyPass / http://127.0.0.1:8080/a/
    ProxyPassReverse / http://127.0.0.1:8080/a/
    ProxyPassReverseCookieDomain 127.0.0.1:8080/a/ www.g.com
    ProxyPassReverseCookiePath / /
    ErrorLog "d:/dummy-host2.javaen.com-error.log"
    CustomLog "d:/dummy-host2.javaen.com-access.log" common  



    ProxyPreserveHost On
    ServerName www.g.com  
    ProxyPass /manager/ http://127.0.0.1:8080/m/
    ProxyPassReverse /manager/ http://127.0.0.1:8080/m/
    ProxyPassReverseCookieDomain 127.0.0.1:8080/m/ www.g.com
    ProxyPassReverseCookiePath / /manager/
    ErrorLog "d:/dummy-host2.javaen.com-error.log"
    CustomLog "d:/dummy-host2.javaen.com-access.log" common  



    ProxyPreserveHost On
    ServerName lt3g.g.com  
    RewriteEngine on
    RewriteRule  ^/rudd-web(.*) http://132.35.76.52:9081/rudd-web$1 [L,R=301,P,NC]
    RewriteRule ^/(.*) http://esales.10010.com/$1 [L,R=301,P,NC]
    ProxyPassReverseCookieDomain 10010.com lt3g.g.com
    ProxyPassReverseCookiePath / /
      
     ProxyHTMLEnable On
     ProxyHTMLMeta On
     ProxyHTMLExtended On
     ProxyHTMLURLMap http://132.35.76.52:9081 http://lt3g.g.com
    
  
    ErrorLog "d:/dummy-host2.javaen.com-error.log"
    CustomLog "d:/dummy-host2.javaen.com-access.log" common  


  
    ProxyPreserveHost On
    ServerName lt3g.chainbuy.net
    RewriteEngine on
    RewriteRule  ^/rudd-web(.*) http://132.35.76.52:9081/rudd-web$1 [L,R=301,P,NC]
    RewriteRule ^/(.*) http://esales.10010.com/$1 [L,R=301,P,NC]
    ProxyPassReverseCookieDomain 10010.com lt3g.chainbuy.net
    ProxyPassReverseCookiePath / /
    
       ProxyHTMLEnable On
       ProxyHTMLExtended On
       ProxyHTMLURLMap http://132.35.76.52:9081 http://lt3g.chainbuy.net:8080
RequestHeader    unset  Accept-Encoding

    ErrorLog "|/home/tzweb/apache2-http-2.4.3/bin/rotatelogs /home/tzweb/apache2-http-2.4.3/logs/lt3g.chainbuy.net-error_%y-%m-%d.log 86400"
    CustomLog "|/home/tzweb/apache2-http-2.4.3/bin/rotatelogs /home/tzweb/apache2-http-2.4.3/logs/lt3g.chainbuy.net-access_%y-%m-%d.log 86400" common



    ProxyPreserveHost On
    ServerName lt3g.chainbuy.cn
    RewriteEngine On
    RewriteRule  ^/rudd-web(.*) http://132.35.76.52:9081/rudd-web$1 [P,L]

    RewriteRule ^/(.*) http://esales.10010.com/$1 [P,L]
    ProxyPassReverseCookieDomain 10010.com lt3g.chainbuy.cn
    ProxyPassReverseCookiePath / /
  
      ProxyHTMLEnable On
       ProxyHTMLExtended On
       ProxyHTMLMeta On
       ProxyHTMLDoctype XHTML Legacy
       ProxyHTMLURLMap http://132.35.76.52:9081 http://lt3g.chainbuy.cn:8081 e
       RequestHeader    unset  Accept-Encoding
  

  ErrorLog "|/home/tztrans/apache2x/bin/rotatelogs /home/tztrans/apache2x/logs/10010.com-error_%y-%m-%d.log 86400"
  CustomLog "|/home/tztrans/apache2x/bin/rotatelogs /home/tztrans/apache2x/logs/10010-access_%y-%m-%d.log 86400" common



http://xinkang120.blog.163.com/blog/static/1946682232012118111458471/
http://www.blogjava.net/libin2722/articles/344405.html


[本日志由 admin 于 2012-12-21 01:25 PM 编辑]
上一篇: apache 反向代理 tomcat会话丢失
下一篇: nginx 安装并配置
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: apache Tomcat
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
邮 箱: 支持Gravatar头像.
网 址: 输入网址便于回访.
内 容:
验证码:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.