Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

hi all i have a redirection problem with mod ajp, that it always adds the application name before the desired page, for example:

if i requested the page:

http://myapp.com/mypage

it is converted to

http ://myapp.com/myapp/mypage, and i get a 404 error

i don't know why such behaviour occurs, this is the configuration:

<Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> 
ProxyPass / ajp://127.0.0.1:8009/myapp/ 
ProxyPassReverse / 
ajp://127.0.0.1:8009/myapp/ 
ProxyPassReverseCookiePath /myapp/ 
share|improve this question
    
any help, i feel like lost here ? –  user55517 Oct 5 '10 at 7:46
add comment

1 Answer

Try

ProxyPass /myapp/ ajp://127.0.0.1:8009/myapp/ 
ProxyPassReverse /myapp/ ajp://127.0.0.1:8009/myapp/ 

or

ProxyPass / ajp://127.0.0.1:8009/ 
ProxyPassReverse / ajp://127.0.0.1:8009/ 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.