Go Back   Web Server Hosting Forum by BODHost > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-07, 08:12
BOD Member
 
Join Date: Oct 2007
Posts: 24
Default How to setup Virtual Host in Apache

how do I set up a virtual host in Apache, since I have never done this before, am using the latest version of apache.
Reply With Quote
  #2 (permalink)  
Old 11-21-07, 13:10
Moderator
 
Join Date: Oct 2005
Posts: 346
Default

I have studied on this one and found the following in creating virtual host on your apache server. Perhaps, you can have a look at following :

The port of Apache should listens to port 80

Listen 80

It should also listen to all virtual host requests on all IP addresses

Listen for
NameVirtualHost *:80

< VirtualHost *:80 >
DocumentRoot /www/example1
ServerName www.example1.com

# Other directives here

< /VirtualHost >

< VirtualHost *:80 >
DocumentRoot /www/example2
ServerName www.example2.org

# Other directives here

< /VirtualHost >

You may replace * with the IPs
Reply With Quote
  #3 (permalink)  
Old 11-24-07, 07:30
BOD Member
 
Join Date: Oct 2007
Posts: 34
Default

You can park additional domain like www.example5.com on www.example1.com by adding one line in the virtual host entry of www.example1.com

ServerAlias www.example5.com

Now restart httpd service.

Glenn....
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:48.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.