Rewrite and Proxy in one vhost

Discussion in 'Apache' started by slowmo, Aug 7, 2009.

  1. #1
    Hello

    I'm new at this Apache stuff, sorry about that, but I'm a bit stuck right now.

    What I want to do is this
    1. go to http://internal.something.com -> http://internal.something.com/test
    2. internal.something.com = localhost:8888
    3. this localhost:8888 is another web service outside of Apache

    The part that http://internal.something.com is going to http://localhost:8888 is working:
    #For test
    <VirtualHost *:80>
    ServerAdmin webmaster@something.com
    ServerName internal.something.com
    ServerAlias TEST
    ProxyPass / http://localhost:8888/
    ProxyPassReverse / http://localhost:8888/
    ErrorLog logs/test-error_log
    CustomLog logs/test-access_log common
    </VirtualHost>

    but I'm unable to add the /test

    This is probably simple to the experts, but I'm not getting it. Could someone help me out please

    Kind regards
     
    slowmo, Aug 7, 2009 IP