We've recently installed NCSA's httpd 1.5 (solaris 2.4) for the purpose of
running multiple virtual servers. We want to serve different docs for
different domain names, i.e.:
http://www.domain1.com/ serves doc1.html and
http://www.domain2.com/ serves doc2.html
In the conf/httpd.conf file one can put specify these tpes of things
using the <VIRTUALHOST> parameter.
The problem is that it does not seem to work for us! More specificly, we
are have registered multiple domain names with our Internet Provider, all
of which are aliased to our main domain name. Without the <VIRUTALHOST>
parameter, both of the example URLs listed above go to the same doc.
Now we want to use this <VIRTUALHOST> stuff. It seems to want an IP
address for a parameter; how should we give this domain name an IP
address -- we have a class C address, meaning we have 255 ip addresses to
use. My questions are:
In what files do we need to specify the IP address (resolv.conf?
/etc/hosts, etc.), and what would be the syntax used.
Any help would be greatly appreciated.
Real Estate On-Line