RE: [users@httpd] Proxy and Virtual Host

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

 



No, that's perfect. As long as outside requests come on port 80, I don't
care how internal ports are treated. The biggest thing was that I wasn't
sure if I could setup a proxy block within a virtual host block. Just
one question. Can I specify the domain address as opposed to the IP
address in the virtual host definition?

<VirtualHost www.mysite.com>
...
</VirtualHost>

All of my traffic is coming to the same IP, so my assumption is that
having 3 or so virtual hosts with the same IP wouldn't work. If it will,
that'd be fine, tho. Also, would it be possible to have multiple domain
names proxied with one call (i.e. *.mysite.com)? This would save me time
when registering new subdomains and such.

Thanks for the help! I'll try this out when I get access to that
machine, again.

Michael


-----Original Message-----
From: Stuart Low [mailto:stuart@xxxxxxxxxxxxxx] 
Sent: Monday, November 21, 2005 9:54 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Proxy and Virtual Host

Heya,

> www.mysite.com - IIS
> www.mysite.net - IIS
> svn.mysite.net - Apache
> Is this possible? I'm not very familiar with Httpd, but I have set it 
> up about half a dozen times for Subversion. Thanks in advance for any 
> help!

Yes it's possible. What you need to do is forward the incoming port 80
request to Apache. Then setup a mod_proxy setup for the virtualhosts you
require (ala mysite.com & svn.mysite.net). Provided local DNS resolution
is setup correctly the Apache server will do a lookup, resolve to the
local LAN address and proxy traffic to/from.

Something like:

<VirtualHost 123.123.123.123>
ServerName www.mysite.com
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://www.mysite.com:81/
ProxyPassReverse / http://www.mysite.com:81/

</VirtualHost>

Where 123.123.123.123 is the address your inbound port 80 traffic is
going to. Port 81 is your IIS server (could put Apache on 81 and prrroxy
from 81 -> 80 if you feel like it).

Stuart


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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