SoZo Hosting 800-640-4892: Specializing In Windows Dedicated Server, Linux Dedicated Server, ColdFusion Dedicated Server, ColdFusion Hosting, Cloud Hosting, Windows Hosting, Linux Hosting, SEO, Web Full Page Ads...

How-To Questions and Answers For Apache

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:

<VirtualHost <ipaddress>:80>
ServerName site1.com
DocumentRoot "/home/site1.com/www"
</VirtualHost>
<Directory "/home/site1.com/www">
allow from all
Options +Indexes
</Directory>

<VirtualHost <ipaddress>:80>
ServerName site2.com
DocumentRoot "/home/site2.com/www"
</VirtualHost>
<Directory "home/site2.com/www">
allow from all
Options +Indexes
</Directory>

6. Also add the following virtual host entry:

# Use name-based virtual hosting.
#
NameVirtualHost <ipaddress>:80

Click on this linux dedicate server link for pricingĀ andĀ orderingĀ information.