添加VirtualHost会中断所有其他服务器文件夹

时间:2013-04-07 16:16:07

标签: apache hosting virtualhost

我正在尝试在我的服务器上运行designer-school.com。我添加了这个VirtualHost

<VirtualHost *:80>
DocumentRoot /var/www/html/backendtwo
ServerName www.designer-school.com
<Directory /var/www/html/backendtwo>
Allow from all
Options +Indexes
</Directory>
</VirtualHost>

现在这意味着我可以访问域designer-school.com 但是,如果我尝试访问此服务器上的其他文件夹,我会收到404错误 http://joshhornby.co.uk/typewriter

并且如果我尝试访问根网站上的博客文章 http://joshhornby.co.uk/post/web-course

有没有办法在服务器上运行域设计器 - 学校,但它不会影响服务器上运行的其他站点?

我已经看过在重新启动服务器时必须运行多个VirtualHosts我收到此消息

[warn] _default_ VirtualHost overlap on port 80, the first has precedence

我的.haccess文件中是否有需要更改的内容?

0 个答案:

没有答案