E D R , A S I H C RSS

FrontPage VPN_ApacheVirtualHost

* 공인 IP 가 매핑된 사설 IP 로 가상 호스트 하기
예) 외부에서 들어오는 IP 는 210.90.80.18 인데 내부는 172.16.52.200

1. /etc/httpd/conf/httpd.conf 에서 해줘야할것
Listen 0.0.0.0:80
NameVirtualHost *:80 <- 공인 IP 가 아닐경우 이렇게 적어줘야 한다 !!!
# Named Base VirtualHost Include
include /etc/httpd/conf/vihost.conf 

2. /etc/httpd/conf.vihost.conf
<VirtualHost *:80>
       ServerAdmin webmaster@enterprise1.co.kr
       ServerName www.enterprise1.co.kr
       ServerAlias www.enterprise1.co.kr enterprise1.co.kr
       DocumentRoot /var/www/html
       ErrorLog logs/enterprise1_error_log
       CustomLog logs/enterprise1-access_log common
</VirtualHost>

<VirtualHost *:80>
       ServerAdmin webmaster@enterprise1.co.kr
       ServerName www.sunnyedu.com
       ServerAlias www.sunnyedu.com sunnyedu.com
       DocumentRoot /var/www/sunny
       ErrorLog logs/www.sunnyedu_error_log
       CustomLog logs/www.sunnyedu-access_log common
</VirtualHost>

<VirtualHost *:80>
       ServerAdmin webmaster@khameth.com
       ServerName www.khameth.com
       ServerAlias www.khameth.com khameth.com www.khameth.com
       DocumentRoot /var/www/khameth
       ErrorLog logs/www.khameth_error_log
       CustomLog logs/www.khameth-access_log common
</VirtualHost>

<VirtualHost *:80>
       ServerAdmin webmaster@donglimwood.co.kr
       ServerName www.donglimwood.co.kr
       ServerAlias www.donglimwood.co.kr donglimwood.co.kr
       DocumentRoot /var/www/donglim
       ErrorLog logs/www.donglim_error_log
       CustomLog logs/www.donglim-access_log common
</VirtualHost>
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-01-21 16:32:30
Processing time 0.0112 sec