ubuntu 下apache2虚拟主机配置

2018-06-05  本文已影响29人  Mokaixin丶

<VirtualHost *:80>
ServerName www.xxx.com

    ServerAdmin xxxxx@xx.com

    DocumentRoot  /var/www/html

    directoryIndex  index.html index.php index.htm index.shtml login.php

    <Directory "/var/www/html">
            Options Indexes FollowSymlinks
            AllowOverride All
            Require all granted
    </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

上一篇下一篇

猜你喜欢

热点阅读