Apache
From Chaehyun
(Difference between revisions)
Xlos (Talk | contribs)
(Created page with "= Virtual host 설정 = * httpd -V | egrep "(HTTPD\_ROOT|SERVER\_CONFIG\_FILE)" ** 설정 파일을 찾는다 * vim /etc/httpd/conf/httpd.conf <pre> NameVirtualHost *:80 <Virtu...")
(Created page with "= Virtual host 설정 = * httpd -V | egrep "(HTTPD\_ROOT|SERVER\_CONFIG\_FILE)" ** 설정 파일을 찾는다 * vim /etc/httpd/conf/httpd.conf <pre> NameVirtualHost *:80 <Virtu...")
Latest revision as of 12:53, 5 February 2014
Virtual host 설정
- httpd -V | egrep "(HTTPD\_ROOT|SERVER\_CONFIG\_FILE)"
- 설정 파일을 찾는다
- vim /etc/httpd/conf/httpd.conf
NameVirtualHost *:80 <VirtualHost *:80> ServerName sk001.reople.com DocumentRoot /var/www/html </VirtualHost> <VirtualHost *:80> ServerName eat.reople.com DocumentRoot /var/www/html/eat </VirtualHost> <VirtualHost *:80> ServerName movie.reople.com DocumentRoot /var/www/html/movie </VirtualHost>