0 0

Apache httpd 配置问题,让rewrite 在proxypass 之前执行。0

我的apache2.2 配置

ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/
......


RewriteEngine on
RewriteOptions Inherit
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteLog "/usr/local/var/apache/logs/rewrite.log"
......



主要实现2个功能:
1.通过ajp连接tomcat6,而且需要在root context.
2.重定向非www开头的请求到www域名。

现在看了一些文章发现proxy / 会导致 rewrite失效,如何让rewrite 在proxy执行呢?
2012年8月08日 10:23
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics