APACHE의 Virtual Host 셋팅

설정파일 위치 : /usr/local/apache/conf/extra/httpd-vhosts.conf


[#M_더보기(펼치기)|닫기|


# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn’t need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option ‘-S’ to verify your virtual host
# configuration.


#
# Use name-based virtual hosting.
#
NameVirtualHost 210.119.104.85


#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost 210.119.104.85>
    ServerAdmin
root@localhost
    DocumentRoot /home/coco/html
    ServerName neococo.net
    ServerAlias
www.neococo.net
    ErrorLog logs/error_log
    CustomLog logs/access_log combined env=!not_log
</VirtualHost>
<VirtualHost 210.119.104.85>
    ServerName
www.lovecoco.net
    ServerAlias lovecoco.net
    #ResinConfigServer 127.0.0.1 6802
    DocumentRoot /home/html01/html
    ErrorLog logs/error_log
    CustomLog logs/access_log combined env=!not_log
</VirtualHost>
<VirtualHost 210.119.104.85>
    ServerAdmin
blog@localhost
    DocumentRoot /home/blog/html
    ServerName blog.lovecoco.net
    ServerAlias blog.neococo.net
    ErrorLog logs/user-blog-error_log
    CustomLog logs/user-blog-access_log combined env=!not_log
</VirtualHost>
<VirtualHost 210.119.104.85>
    ServerAdmin
root@localhost
    DocumentRoot /home/gate/html
    ServerName www01.clubgate.co.kr
    ErrorLog logs/user-clubgate-error_log
    CustomLog logs/user-clubgate-access_log combined env=!not_log
</VirtualHost>
<VirtualHost 210.119.104.85>
    ServerAdmin
root@localhost
    DocumentRoot /home/gate01/html/webdisk
    ServerName webhard.clubgate.co.kr
    ErrorLog logs/user-clubgate-error_log
    CustomLog logs/user-clubgate-access_log combined env=!not_log
</VirtualHost>

_M#]

댓글

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다