Virtual Host for Apache

Admin 2020.05.13 10:35 조회 수 : 21

윈도우에서의 가상 호스트 사용예이다.

 

/conf/extra/httpd-vhost.conf 

<VirtualHost *:80>

    ServerAdmin webmaster@myhost.local

    DocumentRoot "D:/MYHOST/PUBLIC"

    ServerName myhost.local

    ErrorLog "logs/myhost.local-error.log"

    CustomLog "logs/myhost.local-access.log" common

    <Directory "D:/MYHOST/PUBLIC">

        Options Indexes MultiViews

        AllowOverride None

        Require all granted

    </Directory>

</VirtualHost>