This tip is on hosting. Here you go — free on us — compliments of http://www.sozohosting.com/ and also compliments of http://www.biznesstechnologies.com/ :

 

How to run several websites under one ip address in apache:

 

1. Install Apache using the following command: yum install httpd

2. Check to see if apache came up properly, browse to the ip address of the server.

3. To configure apache to run several websites on one ip you will need to create the directories first, upload the websites and then modify the httpd.conf .

4. You can create the directories for example under /home , so they would be /home/site1.com/www, /home/site2.com/www and so on and so forth.

5. Once the directories are in place you can now make the following entries at the bottom of the httpd.conf:

:80>
ServerName site1.com
DocumentRoot “/home/site1.com/www”

allow from all
Options +Indexes

:80>
ServerName site2.com
DocumentRoot “/home/site2.com/www”

allow from all
Options +Indexes

6. Also add the following virtual host entry:

# Use name-based virtual hosting.
#
NameVirtualHost :80

Categories: Uncategorized ,Web Hosting ,Web Hosting and Database Tips


Leave a Reply

You must be logged in to post a comment.