我试图通过使用mod_jk将我的webapp的任何请求传递给tomcat容器,当请求.jsp和静态文件时,一切都很好,但我使用.htaccess文件来制作友好的URL ,这是不工作的某些原因与当前的配置,这是vhost.conf我有:JKMount没有拿起.htacess
DirectoryIndex index.jsp index.htm index.html index.php
<IfModule mod_jk.c>
JkMount/ajp13
JkMount /* ajp13
</IfModule>
RewriteLog /etc/httpd/logs/rewrite.log
RewriteLogLevel 3
DocumentRoot /usr/share/tomcat6/psa-webapps/localkicks.com
<Directory /usr/share/tomcat6/psa-webapps/localkicks.com>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
一个基本的重写规则:
RewriteEngine on
RewriteRule ^/?editorial_search$ news_search_result.jsp [L]
为什么会这样发生?
¿是如何传入的URL在你的问题重写规则? –
类似http://www.localkicks.com/editorial_search –