vim httpd.conf

vhost.conf 파일 include.

include "conf/httpd_vhost.conf"


httpd_vhost.conf

<VirtualHost *:80>
    DocumentRoot "/var/www/html/"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/home/디렉토리"
    ServerName dev_mb.localhost
    ServerAlias dev_mb.domain.com
</VirtualHost>


Apache 2.4 이후

<Directory "/home/디렉토리">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

Apache 2.4 이전

<Directory "/home/디렉토리">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

[authz_core:error] 이럴경우 Directory 접근 제한을 해제해야 하는데, 이전 버전과 다르다...


« PREV : 1 : ··· : 4 : 5 : 6 : 7 : 8 : 9 : 10 : 11 : 12 : ··· : 41 : NEXT »