Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: RewriteRule doesnt work with mod_jk |
|
Author |
|
facilus
Joined: 02 Mar 2015 Posts: 1 Location: France, Paris
|
Posted: Mon 02 Mar '15 20:32 Post subject: RewriteRule doesnt work with mod_jk |
|
|
Hello,
I've my web application under tomcat/webapps, i associate apache with tomcat with mod_jk
i add this VirtualHost in ip_adress.conf :
Code: | <VirtualHost ip_adress:80>
DocumentRoot "/var/lib/tomcat7/webapps"
ServerName adresse_ip_du_vps:8009
Alias / /var/lib/tomcat7/webapps
JkMount /* app02
DirectoryIndex index.xhtml
RewriteEngine On
RewriteRule ^/$ http://ip_adress/app02 [L]
</VirtualHost> |
when i try to access to my app with this url "http://ip_adress/", i've this error in navigator :
Code: | Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.10 (Ubuntu) Server at ip_adress Port 8009 |
in error.log i've this trace :
Code: | [Mon Mar 02 18:41:53.154879 2015] [rewrite:trace2] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] init rewrite engine with requested uri /
[Mon Mar 02 18:41:53.155127 2015] [rewrite:trace3] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] applying pattern '^/$' to uri '/'
[Mon Mar 02 18:41:53.155180 2015] [rewrite:trace2] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] rewrite '/' -> 'http://ip_adress/app02'
[Mon Mar 02 18:41:53.155196 2015] [rewrite:trace3] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] reduce http://ip_adress/app02 -> /app02
[Mon Mar 02 18:41:53.155209 2015] [rewrite:trace2] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] local path result: /app02
[Mon Mar 02 18:41:53.155255 2015] [rewrite:trace2] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] prefixed with document_root to /var/lib/tomcat7/webapps/app02
[Mon Mar 02 18:41:53.155267 2015] [rewrite:trace1] [pid 12286] mod_rewrite.c(475): [client 176.144.114.27:58754] 176.144.114.27 - - [ip_adress/sid#7ffef7e1ee08][rid#7ffef7df10a0/initial] go-ahead with /var/lib/tomcat7/webapps/app02 [OK] |
what i've forgot ?
thank's |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 20 May '15 10:57 Post subject: |
|
|
Since nobody replied and I don't have a clue with mod_jk... however did you try mod_proxy_ajp yet? |
|
Back to top |
|
|
|
|
|
|