我正在使用 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 工作正常,但问题是没有 session 通过代理传递。我尝试使用 sickysession,但它不起作用。请提前帮助我解决问题。
最佳答案
终于找到答案了
ProxyPassReverseCookiePath /uxsurvey/ http://abcd.com:8080/
对我有用
关于apache - 如何使用代理和虚拟主机将 session 从 apache2 传递到 tomcat7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32335382/