In the daily publishing site in many cases can not do a single IP site, in the case of IP4 IP resources are relatively limited. However, as the most popular Apache nature also consider this situation, then see how the Apache server to configure an IP multiple sites.
Find "# Virtual hosts" in the httpd.conf and add such as downlink
Copy Code code as follows:
ServerName your domain name.
Hostnamelookups off
Example
Namevirtualhost 192.168.1.104
<virtualhost 192.168.1.104>
ServerName www.php.com
test@gmail.com
documentroot/data/www1/
directoryindex index.php index.html
index.htm Errorlog/usr/local/apache2/logs/wwwerror_log
loglevel warn
hostnamelookups off
<directory/data/ www1/>
allowoverride None order
Allow,deny
allow to all
</Directory>
</ virtualhost>
<virtualhost 192.168.1.104>
ServerName bbs.php.com
ServerAdmin test@gmail.com
documentroot/data/www2/
directoryindex index.php index.html
index.htm Errorlog/usr/local/apache2/logs/bbserror_log
loglevel warn
hostnamelookups off
<directory/data /www2/>
allowoverride None order
Allow,deny
allow to all
</Directory>
</ Virtualhost>
The above example IP is 192.168.1.104, domain name is www.php.com and bbs.php.com respectively. As a result, APAHCE is identified by the ServerName to identify the different sites under the same IP.
In the actual application you only need to IP192.168.1.104, domain name www.php.com and bbs.php.com respectively to your IP and domain name can.