RE: [users@httpd] Virtual hosts not working

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

 



It turns out that since I'm sitting behind a router that does NAT, that I
need to explicitly list the interface IP address(es)

Once this was done, all works perfectly


-----Original Message-----
From: Bill Measday [mailto:linux_test@xxxxxxxxxxx] 
Sent: Thursday, 20 October 2005 11:03 AM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] Virual hosts not working

Under Fedora Core 4 and Apache 2.0, I have the following in
/etc/httpd/conf/httpd.conf

...
Listen *:80

...

NameVirtualHost *:80

# Where do we put the lock and pif files?
LockFile "/var/lock/httpd.lock"
CoreDumpDirectory "/etc/httpd"

# Defaults for virtual hosts

# Logs

#
# Virtual hosts
#

# Virtual host Default Virtual Host
<VirtualHost *>

 	ServerSignature email

	DirectoryIndex  index.php index.html index.htm index.shtml

 	LogLevel  warn
 	HostNameLookups off

</VirtualHost>

# Virtual host www.example-hyphenated.com

<VirtualHost *:80>
        ServerName www.example-hyphenated.com

 	DocumentRoot /www/html/e-h

 	ServerAdmin webmaster
        ServerAlias example-hyphenated.com

	DirectoryIndex index.html index.htm index.shtml

</VirtualHost>

...

web docs are stored in /var/www/html for non-virual host (I tried
DocumentRoot /var/www/html as well but this didn't work either)

Instead of seing the tesp page I have stored in /var/www/html/e-h/index.htm,
I still see the main web pages from /var/www/html (ie the non-virtual host
site).

My conf file seems to be in line with the example doc.s so I assume I'm
doing something pretty dumb, or missing some basic setup parameter.

I've tried both reloading and restarting after changing the conf.

Thanks in advance


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