【问题标题】:How to pass session from apache2 to tomcat7 using proxy and virtual host如何使用代理和虚拟主机将会话从 apache2 传递到 tomcat7
【发布时间】:2015-11-26 21:54:16
【问题描述】:

我正在使用 apache 服务器发布在 tomcat 服务器中运行的 grails 应用程序。我正在使用子域发布应用程序。我的虚拟主机配置如下所示。

 <VirtualHost uxsurvey.abcd.com:80>
    ServerName uxsurvey.abcd.com
    ServerAlias *.uxsurvey.abcd.com
    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    RewriteEngine on
    ProxyPass / http://abcd.com:8080/uxsurvey/
    ProxyPassReverse / http://abcd.com:8080/uxsurvey/
    ProxyPreserveHost On
    ProxyStatus On
        RewriteRule ^.*/uxsurvey/(.*)$ /$1 [P,L]

    <Location />
       Order allow,deny
      Allow from all
  </Location>
</VirtualHost>

uxsurvey.abcd.com 工作正常,但问题是没有会话通过代理。我尝试使用sickysession,但它不起作用。请提前帮助我解决问题。

【问题讨论】:

  • 你见过这个问题吗? stackoverflow.com/q/8676890/3340702
  • 是的,然后我使用那些 ProxyPassReverseCookiePath /uxsurvey / ProxyPassReverseCookieDomain localhost uxsurvey.abc.com 但它对我不起作用。

标签: apache tomcat grails proxy virtualhost


【解决方案1】:

我终于得到了答案

 ProxyPassReverseCookiePath /uxsurvey/ http://abcd.com:8080/ 

为我工作

【讨论】:

    猜你喜欢
    • 2015-03-24
    • 1970-01-01
    • 2023-03-04
    • 2015-10-06
    • 2012-03-10
    • 2019-01-01
    • 2014-10-29
    • 2013-06-24
    • 2014-10-23
    相关资源
    最近更新 更多