Re: [users@httpd] virtual servers problem

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

 



It was thus said that the Great Grzegorz Jankowski once stated:
> 
> Hi, I think I have quite sofisticated problem with virtual servers on
> my apache ( 1.3.26 ). It's standig on Linux box ( 2.4.x ).
> 
> Everything was qiute fine ( about 10 virtual servers with separate
> content, DNS defined of course correctly ) till I moved to another 
> location and now my Linux box is standing behind hardware firewall
> ( Linksys WRT54G )-that has static & routable IP. I have 192.168.x.y but
> I have some ports ( 22, 25, 80, 110 ) forwarded 
> and all the serwices ( ssh, smtp, pop3 ) work fine in bi-directional
> way ( i can acces my host through this static ip, all the mails arrive 
> in proper way - through the MX in DNS .... )

  I assume that the DNS entries for the various websites have also been
updated, so what www.example.net is now pointing to your hardware firewall's
public IP address.  

> I thaught that I understand TCP/IP but I do not know what's wrong - 
> all the virtuals stoped working at all. Only the main content ( pointed
> by "DocumentRoot" in srm.conf ) can be accesed. All the virtuals ( DNS is 
> changed of course for all the virtuals, I tested as a CNAME and A records)
> display only the main content - no mater what I type - only one site 
> content occures.

  Did you change the NameVirtualHost directive to have the IP address of
your webserver (192.168.x.y)?  Also, how are your VirtualHosts defined? 
Like:

	<VirtualHost www.2.mysite.pl>

or

	<VirtualHost A.B.C.D>	(where A.B.C.D is an IP address)

  The easiest thing is to change the VirtualHost directive to

	<VirtualHost 192.168.x.y>

  And see if that works.

  -spc


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