我正在尝试在我的虚拟主机之一下添加服务器状态位置指令,但是在浏览到 www.mywebsite.com/server-status 时,我收到了 403 Access Forbidden。将位置指令置于虚拟主机下是否合法?
编辑 #1:完整的虚拟主机配置
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin yehiasalam@cairocubicles.com
ServerName aumento.io
ServerAlias www.aumento.io
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/cairocubicles/web/aumento.io/public
<Directory /home/cairocubicles/web/aumento.io/public>
Order Allow,Deny
Allow from all
Options Indexes FollowSymLinks
AllowOverride All
AcceptPathInfo On
</Directory>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from aumento.io
</Location>
# Custom log file locations
LogLevel warn
ErrorLog /home/cairocubicles/web/aumento.io/log/error.log …Run Code Online (Sandbox Code Playgroud) apache-2.2 ×1