Mark Rogers wrote:
Why is Apache configuration so confusing!
I worked it out!
Listen 80
NameVirtualHost *
Make this NameVirtualHost *:80
<VirtualHost *>
Make this (and all the others except the :8080 one) <VirtualHost *:80>
I was reading Apache 1.3 docs by mistake, which makes it clear that in
general * means *:80 (not *:*) where 80 is the last value set by the
Port command.
It seems that in Apache 2 things are different, and it certainly looks
like * now means *:* not *:80, although I can't find that documented
(although I did find that the Port command no longer exists).
What was (is) odd is that changing to NameVirtualHost *:80 broke
everything (everything showed the default host) until I also changed the
hosts themselves from * to *:80.
A useful diagnostic command "apache2 -t -D DUMP_VHOSTS"
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555
Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG
_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro