What is the simplest possible configuration of Apache2 mod_proxy?

Posted by Eye of Hell on Server Fault See other posts from Server Fault or by Eye of Hell
Published on 2011-01-30T14:27:12Z Indexed on 2011/01/30 15:27 UTC
Read the original article Hit count: 416

Filed under:

Hello.

I have an apache2 running and i have a service available as http://www.domain.com:8080/sitename

What will be a simplest apache2 configuration so entering "http://www.domain.com" in browser will show "http://www.domain.com:8080/sitename"? I have added:

<VirtualHost *:80>
  ProxyPass / http://www.domain.com:8080/sitename/
  ProxyPassReverse / http://www.domain.com:8080/sitename/
</VirtualHost>

But, of course, this is not workig. Is it some simple configuration i can use for such redirect or i'm doomed to copy-paste a 100+ line configs from tutorials?

© Server Fault or respective owner

Related posts about apache2