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

Re: localhost vs vhost problem


Perrin Harkins wrote:
Robert Landrum wrote:
localhost isn't a server listed in your VirtualHost section in either ServerName or ServerAlias. That means that the VirtualHost section isn't even a consideration when hitting localhost.

Doesn't that mean it just takes the first VirtualHost that appears in the file?


Actually, it's been literally 5 years since I've done any named virtualhost stuff, so it could've changed in that time... But as I recall, it will use the global configuration as defined by httpd.conf, not any one specific VirtualHost block.

Again, this is based on the default setup (of 5 years hence), which I believe had:

Listen *:80

Rob


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.