You can setup virtual hosts using the same ip address to point to all of them. You should see an example in your httpd.conf file. You could also use virtual domains but each one would need it's own ip address. One thing to note is that if you use virtual domains or hosts your main server will never be served. You will have to create a virtual host for the main server also. Then the 'real' main server's settings are only used for global definitions. You can override these definitions within each virtual host container. I hope I understood the question correctly. Good luck.
As indicated above, you need to use virtual hosts or, more specifically, name-based virtual hosts. The following are examples of three different domains (as indicated by the ServerName directive) all of which are running on a single IP address. You would put something like this in your httpd.conf. The DocumentRoot directives define the physical location of the content - obviously you would use your W2K locations but you should get the idea.
All you need to do is get all the sites to resolve to you IP address via DNS. (172.16.16.1 above is an example of the internet ip address on which apache is listening - if you prefer you can substitute '*' which is supposed to listen on all interfaces) See -->
Also, if you are going to host lots of sites there is a syntax that can be used to dynamically generate elements of the virtual host (e.g. directory path) based on manipulation of the content of the http header, i.e. mass virtual hosts -->
To some extent you can get round the problem RhythmAce described above by setting your default up in a 'dummy' virtual host container that is first in the list - known as the 'primary virtual host'. If a request is received that doesn't match any of the defined vhosts, apache chooses the first one by default.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.