Sorry I missed your earlier messages otherwise i would have helped you out!
If you are setting up many virtual hosts you can simply create a virtual
host per site in sites-available and you can remove the NameVirtualHost
reference from all but the root server [default file].
80 is just a port reference and again - once you have this set-it-up
correctly in your default apache server site you can ignore it in the
virtual hosts files
Based on that, if you have set-up BIND9 correctly it should be working
perfectly.
BTW:
On a real world server or office server you should only use * marker for
your default server root and not your virtual hosts.
Use the default server site to create a holding page for your virtual
hosts.
Your virtual hosts should run from the IP address you give them.
Otherwise, on error - you will not know if [a] your IP address block is
failing [b] your dns is failing or [c] risk various other security loop
holes.
Two options:
1] If you use debian or ubuntu you are forced to everything manually. It
is very easy!
2] If you are using Centos or Fedora etc.. then you can install the
relevant graphical tools via YUMEX and it will do it for you! Even easier!
Option 1 gives you complete control but you do everything manually.
Installing MySQL on debian is automated.
Option 2 is very easy, extremely quick [almost idiot proof] and can
automatically chroots stuff for you. Install MySQL on RHEL based stuff
is manual.
I run both Debian and Centos servers.
Mark Rogers wrote:
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"
_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro