1

我正在尝试在我的服务器上运行 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 文件中有什么需要更改的吗?

4

0 回答 0