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

can anybody tells me what's wrong on this:

there is an app on tomcat running with context mobile and we want to have it available on root context of url m.example.com, I thought that this will done the job but it's not true, everytime I put request to this url apache adds one /mobile behind so after a few requests to m.example.com the final request could looks like m.example.com/mobile/mobile/mobile/mobile/

<VirtualHost *:80>

    ServerName m.example.com
    ServerAlias m.example.com

    ProxyRequests Off
    ProxyPreserveHost On

    ProxyPass / http://localhost/mobile/
    ProxyPassReverse / http://localhost/mobile/


    <Proxy http://localhost/mobile/*>
      Order deny,allow
      Allow from all
    </Proxy>        

</VirtualHost>

Thanks for all answers.

share|improve this question

migrated from stackoverflow.com Oct 10 '12 at 15:19

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Try adding

ProxyPass /mobile !
share|improve this answer

Your Answer

 
discard

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