윈도우 10 아파치에서 vhost 설정 > 윈도우

본문 바로가기

회원로그인

회원가입

윈도우

윈도우 10 아파치에서 vhost 설정

페이지 정보

profile_image
작성자 최고관리자
댓글 0건 조회 104회 작성일 20-08-25 14:32

본문



httpd.conf

1. vhost 관련 주석 풀기

    LoadModule vhost_alias_module modules/mod_vhost_alias.so

    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf


2. 디렉토리 권한 풀기

    <Directory />
        AllowOverride none
        Require all denied
    </Directory>
    
    수정 후
    <Directory />
        AllowOverride none
        Require all granted
    </Directory>


3. ext/httpd-vhosts.conf 에 vhost  관련  설정 추가

# httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    
    DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common

    <Directory 웹루트경로 >
    Options  FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

</VirtualHost>



댓글목록

등록된 댓글이 없습니다.