SEARCH
TOOLBOX
LANGUAGES
Apache

Apache

From Chaehyun

Revision as of 12:53, 5 February 2014 by Xlos (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>
Retrieved from "http://chaehyun.kr/w/Apache"