Re: Virtual hosts + proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux