We have our intranet which consist of name server. I run a apache webserver in my machine. The url http://one.xyz.com points to my machine ip and goes through apache. I want to run another domain or a virtual host in my apache with different document root say http://two.xyz.com. I have asked administrator to create the two domains and point to the same ip(my machine) I want to configure my apache how do i do that?
Thanks in advance
I just did the same thing, and finally got
I ended up upgading to Apache 1.3.12.
I just could not make it work with my old
In your httpd.conf file you need to
uncomment the "NameVirtualHost" section
and put in the ip of your machine:
Then add your Virtual Hosts (don't forget
to uncomment them)
# ServerAdmin webmaster@some_domain.com
# DocumentRoot /www/docs/some_domain.com
# ServerName some_domain.com
# ErrorLog ogs/some_domain.com-error_log
You'll also need to make your old domain
(one.xyz.com) a virtual domain.
For users on our intranet to reach our
inside Virtual Hosts, they need to have
host files on their PC's, and their web
browsers have to be set up to not look on
the "real" net for the domains. Perhaps
all of this could be not an issue for you
if you have a good SysAdmin to set up your
company's internal network, but ours sucks
big time, and is actually worse than no
Admin at all.