【发布时间】:2017-07-10 00:21:12
【问题描述】:
我将我的应用程序放在 Apache 的一个子文件夹“子文件夹”中,这样我就可以使用如下网址:https://myserver.com/subfolder/#/v2/login 而不是 https://myserver.com/#/v2/login
我正在使用以下目录配置:
Alias /subfolder /srv/apache2/htdocs/subfolder
<Directory /srv/apache2/htdocs/subfolder>
Order allow,deny
Allow from all
Options All
AllowOverride All
Require all granted
</Directory>
问题是现在我有很多断开的链接,并且找不到显示错误的资源,例如:
https://myserver.com/app/v2/anotherfolder/anotherpage.html
Failed to load resource: the server responded with a status of 404 (Not Found)
请注意,错误中的此类链接在路径中不包含“子文件夹”。
我错过了什么?
【问题讨论】:
标签: apache .htaccess webserver virtualhost apache-directory