Форум ApacheDev

Apache isn't the fastest or maximally customizable web server, its popularity comes from the fact that it provides a very good balance of these things bundled with maximum portability and reliability.

Вы не зашли.

#1 2008-01-04 12:48:50

BrotherFlame
Новичок
Зарегистрирован: 2008-01-03
Сообщений: 3
Рейтинг :   

mod_rewrite и Tomcat

В httpd.conf прописано (все развернуто на localhost):

#Alias /Router "C:\Apache2.2\htdocs\Tomcat6\webapps\Router"
Alias /examples "C:\Apache2.2\htdocs\Tomcat6\webapps\examples"

#JkMount  /Router/* worker1
#JkMount /Router worker1
JkMount  /examples/* worker1
JkMount /examples worker1

RewriteEngine on
# Next commented rule works fine
#RewriteRule ^(.*).* /engine/index.html
RewriteRule ^(.*).* /examples/servlets/servlet/RequestInfoExample
При запросе: http://localhost/ выдается: URL / not found
При запросе http://localhost/чтоугодно выдается 404.

В лог пишется, что все ок. Баг Апача?

По отдельности работает и mod_jk и mod_rewrite.
Т.е. при отключенных RewriteRule запрос http://localhost/examples/servlets/servlet/RequestInfoExample
вызывает нужный сервлет.
Включаю рул: RewriteRule ^(.*).* /examples/servlets/servlet/RequestInfoExample

И сервлет не находится. В лог пишется, что найден URL и редирект Ok.

Отредактированно BrotherFlame (2008-01-04 19:27:58)

Неактивен

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson