You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ismael Milach <mi...@gmail.com> on 2005/12/09 15:06:01 UTC
[users@httpd] Virtualhost + Appliance
Hey guys, what's up....
I've made some changes in my network yesterday to put an Appliance
(VPN router, etc.) between the Wan and my Linux box (with Bind,
apache, postfix, etc.).
So now my server has only a local network interface and everything
sent to It is forwarded by the Appliance and vice-versa.
To make things shorter, everything is working fine, the only problem I
have is w/ virtualhosts.
Here's part of the config:
Appliance wan Interface: 210.210.210.210
Appliance LAN interface: 192.168.0.17
server IP: 192.168.0.254
server gateway: 192.168.0.17
httpd.conf:
NameVirtualHost 210.210.210.210:80 (i've tried to switch it to the
server's local IP with no luck)
<VirtualHost intranet.mydomain.com>
DocumentRoot /var/www/intranet
ServerName intranet.mydomain.com
</VirtualHost>
other vhosts follow the same model.
DNS config:
servername IN A 210.210.210.210
intranet IN CNAME servername
I'm able to ping normally.
They're bypassing the vhost directive and going to the apache root
instead of their own's.
Any help would be appreciated.
TYA,
Ismael
---------------------------------------------------------------------
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
Re: [users@httpd] Virtualhost + Appliance
Posted by Joshua Slive <js...@gmail.com>.
On 12/9/05, Ismael Milach <mi...@gmail.com> wrote:
> NameVirtualHost 210.210.210.210:80 (i've tried to switch it to the
> server's local IP with no luck)
It must be the IP address that the server receives requests on. But
you can eliminate this confusion by simply using NameVirtualHost *:80
as documented here:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html#using
>
> <VirtualHost intranet.mydomain.com>
Again, this should be <VirtualHost *:80>
Joshua.
---------------------------------------------------------------------
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