VirtualHost problems

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

 



Could somebody please take a look at this config - I have stripped it down to something close to minimal. No hits on domain1.com seem to reach the intended (first) VirtualHost directive. Hits on domain2.com reach the second VirtualHost only when not preceded by www.
LogLevel debug doesn't help much.

Any help would be much appreciated.
Luke Robinson
---

ServerTokens Prod
ServerRoot /home/os/httpd
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

LogLevel debug
ErrorLog logs/error_log

User os
Group os
UseCanonicalName Off
HostnameLookups Off
ServerSignature Off

Listen 80
NameVirtualHost 1.2.3.4:80

<VirtualHost 1.2.3.4:80>
DocumentRoot /home/os/html/domain1
ServerName www.domain1.com
</VirtualHost>

<VirtualHost 1.2.3.4:80>
DocumentRoot /home/os/html/domain2
ServerName www.domain2.co.uk
</VirtualHost>



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