I'm configuring server-status and get 404 error. I need allow access to server-status
only from site subdomain on same IP. I put server-status
location to virtualhost config, but it's not working.
If I put location
into httpd.conf
, server-status works on all subdomains.
NameVirtualHost 127.0.0.1:8082
<VirtualHost 127.0.0.1:8082>
ServerName tools.sitename.ru
RPAFenable On
RPAFsethostname Off
RPAFproxy_ips 127.0.0.1
# RPAFheader X-Real-IP
# AllowOverride All
DocumentRoot /var/www/tools.sitename
DirectoryIndex index.php index.html default.asp index.cgi
ErrorLog /var/log/httpd/tools.sitename.error.log
CustomLog /var/log/httpd/tools.sitename.access.log common
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from all
</Location>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>