Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
		Network Troublshooting => Linux Servers Support => Topic started by: ilias on July 01, 2006, 10:47:01 AM
		
			
			- 
				Hi all
 
 I have developed two Intranet based websites for my company, both are hosted as virtual directories in a single machine using Apache eg finance and HR and they are accessed as http://company/finance and http://company/hr. where company is the host/machine name
 
 My question is , i want to access them as http://finance and http://Hr. not as above, what are the steps
- 
				ok
 Why dont u use Virtual Hosting
 Make entry in forward file of DNS
 
 finance IN CNAME company
 hr        IN CNAME company
 
 
 Make below entries in apache.conf/httpd.conf
 
 <VirtualHost finance>
 ServerName   finance
 DocumentRoot /.../...  --> give the directory pathname here where index.html/index.php file resides
 ServerAdmin abc@xyz.com    ErrorLog /var/log/apache2/www.example.com-
 
 </Virtualhost>
 
 <VirtualHost hr>
 ServerName  hr
 DocumentRoot /.../...  --> give the directory pathname here where index.html/index.php file resides
 ServerAdmin abc@xyz.com    ErrorLog /var/log/apache2/www.example.com-
 
 </Virtualhost>
 
 after that restart apache service
 
 Gaurav
- 
				Hi
 
 Tks, it worked out. I am wandering how i missed out this simple thing.
 
 Anyway thanks a lot