httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chris <ch...@ia.gov>
Subject Re: [users@httpd] Virtual hosts + proxy
Date Fri, 27 Mar 2009 19:29:42 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> If I change the directive from <VirtualHost *:80> to <VirtualHost *:*> en
> every VirtualHost, I get the same error ...
> And the page is still not working
> 
> What do you suggest?
> Just in case it helps, what I'm trying to do is to expose 4 web pages, and
> one is on a different physical host. So all the requests go to
> 192.168.100.5 (our router forwards the request to this server) and then
> mantis, www, mediawiki get served locally, and mail gets forwarded to
> 192.168.100.6


Your namevirtualhost *:80 line should match what you have in your <VirtualHost *:80>

You'll also want a Listen 80 line somewhere.

Some other things that I notice.  The first argument you have on ProxyPass looks a lot like
a file system path? It
should not be.  It is the URL as you wish the Client to see.  The second argument is how the
request will pass to the
backend.  If the only website on 192.168.100.5 is mail.mydomain.com (or you are using namebased
on your backend) you
could get by with this simple configuration:

<VirtualHost *:80>
        ServerName mail.mydomain.com
        ProxyPreserveHost On
        ProxyPass / http://192.168.100.5/
 </VirtualHost>


I left out the ProxyPassReverse because in most cases when the path is the same on both arguments
of the ProxyPass and
you are using ProxyPreserveHost ON, you will not ever need it.

crr/arreyder



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknNKSYACgkQPmaZdRmQd+ZxxACfZ9sBJuEwP3NCr9zhfnL3jbze
UUsAnRHMIzMTpEIKNnu6u8bq7UuK8H3n
=EHPX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message