Setting up apache for multiple IP and domain names

Support for webhosts that use CentOS
Post Reply
nickytcom
Posts: 1
Joined: 2007/05/25 20:17:52
Contact:

Setting up apache for multiple IP and domain names

Post by nickytcom » 2008/01/04 17:41:08

Hello,

I am in need of CentOS Apache so that httpd.conf is configured for multiple IP and domain names.

Anyone have any good examples of how I can set up my httpd.conf file if I have more than one Range of IP's to configure in apache?
---------------------------------------------------
Currently, these are my directives:

NameVirtualHost *:80

ServerAdmin webmaster@example.com
DocumentRoot /var/www/html/example.com/
ServerName example.com


ServerName xxx.xxx.xxx.xxx
ServerAlias xxx.xxx.xxx.xxx.
DocumentRoot /var/www/html/


ServerName example2.com
ServerAlias example2.com *.example2.com
DocumentRoot /var/www/html/example2.com/


---------------------------------------------------

Thanks in advance,

Nick
:-D

Post Reply

Return to “CentOS 5 - Webhosting Support”