美文网首页
ubuntu 下apache2虚拟主机配置

ubuntu 下apache2虚拟主机配置

作者: Mokaixin丶 | 来源:发表于2018-06-05 19:49 被阅读29次

<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>

相关文章

网友评论

      本文标题:ubuntu 下apache2虚拟主机配置

      本文链接:https://www.haomeiwen.com/subject/uommsftx.html