Apache2 - Document Root因任何原因无效

时间:2014-02-19 10:59:21

标签: apache ubuntu virtualhost document-root

昨天我在我的rootserver上新安装了一个新的Apache。除了一件事之外,它也很顺利 - 除了预定义的(/ var / www /)

之外,apache不会接受任何其他Document Root

以下是一些信息: Ubuntu 13.10安装在我的根服务器上

/ etc / apache2 / sites-enabled /中的

现在只是一个文件:00-default 链接到/ etc / apache2 / sites-available / 000-default并获得以下内容

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

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/default/

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

xxx.xxx.xxx.xxx是我服务器的IP。 不知怎的,它仍然将我重定向到/ var / www /而不是/ var / www / default /

... #apache2ctl configtest说Config很好

哪里可能是我的问题?在我的apache2.conf中甚至没有指定VirtualHost。我错过了一个目录阻止吗?

感谢您的帮助

0 个答案:

没有答案