首頁‎ > ‎Linux筆記‎ > ‎CentOS‎ > ‎

Apache2 Virtual Host設定

使用name based virtual host

取消 NameVirtualHost *:80 這行的注解。

加入 Virtual Host
<VirtualHost *:80>
    DocumentRoot /www
    ServerName www.pastwind.org
    ServerAlias www.*
<Directory /www>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
</VirtualHost>
Comments