Re: [users@httpd] Virtualhost + Appliance

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

 



hey,

  it's your httpd.conf.  The ip's need to be changed away from Ip to name based.  This way apace will look at what the brower is looking for / find it in the config file and put out the files.

in english
when you enter xxx.com  your brower send the request to a a dns server (where is xxx.com  dns: it's xxx.xxx.x.x) Browser then goes to that ip and says to the web server i'm here looking for xxx.com  If it's hosted by the server it replys and spits out the html

so where your config file reads NameVirtualHost 210.210.210.210:80  try NameVirtualHost *:80

also be sure that you have NameVirtualHost *:80 before your first virtualhost in your config file.

On Fri, 9 Dec 2005 12:06:01 -0200, Ismael Milach <milach@xxxxxxxxx> wrote:
> 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@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