|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
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 Bye Raaj |
|
#2
|
||||
|
||||
|
I just did the same thing, and finally got
it working. I ended up upgading to Apache 1.3.12. I just could not make it work with my old version. In your httpd.conf file you need to uncomment the "NameVirtualHost" section and put in the ip of your machine: #NameVirtualHost 12.34.56.78:80 Then add your Virtual Hosts (don't forget to uncomment them) #<VirtualHost ip.of.some_domain.com> # ServerAdmin webmaster@some_domain.com # DocumentRoot /www/docs/some_domain.com # ServerName some_domain.com # ErrorLog ogs/some_domain.com-error_log #</VirtualHost> 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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Virtual Host |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|