Hi all,

Just a quick question re. name based virtual hosts on Apache.

I have just set this up, and discovered that to access localhost, I had
to include 'localhost' as a ServerAlias. 

However, I have found that if I access, say the URL
http://localhost/admin/phpMyAdmin - the browser tries to access
www.mcquillen.bur.st and fails (adsl router is port forwarding port 80).
However, if I access http://localhost/admin/phpMyAdmin/ (with a trailing
slash) it works.

Could anyone tell me why that is?

The config is as follows:

NameVirtualHost *

<VirtualHost *>
ServerName www.mcquillen.bur.st
ServerAlias *.mcquillen.bur.st localhost
DocumentRoot /var/www/html/
</VirtualHost>

I hope that made sense :)

Thanks,

John...
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to