Connecting Tech Pros Worldwide Help | Site Map

Setting Apache Virtual Host

Member
 
Join Date: Aug 2006
Posts: 60
#1: Dec 23 '06
Hi

I need to set up a virtual host . Let me know the steps involved to set up a virtual host. So that , though the internet connection is not available , i could access my intranet pages as www.example.com.

Please shower ur inputs.

Thanks in advance.

Somaskarthic
Loismustdie129's Avatar
Familiar Sight
 
Join Date: Aug 2006
Posts: 195
#2: Dec 23 '06

re: Setting Apache Virtual Host


The basic way I know how to do it is to ues the <VirutalHost> directive

Here is an example using the server www.example.com of the minimum a webmasters must include:

<VirtualHost www.example.com>
DocumentRoot #This is where hte vrtual host's documents reside
Servername www.example.com
ServerAdmin #This is the e-mail address of the virtualhost's webmaster
Redirect #This specifies any RULs to be redirected to other URLs
ErrorLog #This specifies the file where errors are logged involving this virtual host
CustomLog #This specifies the file where accesses to the virtual host is logged
</VirtualHost>

Hope this helps

NOTE: any thing in the example after the # is where you must put your own information independent of your system or virtual host information
cassbiz's Avatar
Familiar Sight
 
Join Date: Oct 2006
Location: Florida
Posts: 204
#3: Dec 26 '06

re: Setting Apache Virtual Host


Man you are posting all over the place.

Using the above method and also the one that I wrote out for you in this post http://www.thescripts.com/forum/thread580357.html
You should be able to figure it out.

Once you have completed the initial steps if you are still having problems then
look into your error logs to see where the problem lies.

Also one other note is that you should be able to ping the domain example.com from your shell.

This is assuming you have Apache setup and it is working.
Reply