I am trying to configure mod_status on my apache 2.4 server. I spent a network for several hours, but all the examples just show the tags in the main httpd.conf file, and not how to place the directives in the virtual host setup.
This is my virtual host configuration with what I tried. When I do this, and then open the local browser or browser from my allowed IP address (my remote public address), I get a forbidden error in the browser.
<VirtualHost *:80> ServerName www.thevmscloud.com ServerAlias thevmscloud.com ServerAdmin admin@thevmscloud.com DocumentRoot "d:/wamp/webdocs/www/" ErrorLog "logs/www.thevmscloud.com.log" CustomLog "logs/www.thevmscloud.com.log" common <Location /server-status> SetHandler server-status Order deny,allow Deny from all Require host 127.0.0.1 81.133.136.16 </Location> <Directory "d:/wamp/webdocs/www/"> LogLevel crit Options Indexes FollowSymLinks Includes ExecCGI AllowOverride all Order Allow,Deny Allow from all Require all granted </Directory>
I tried all kinds of combinations of settings commented to / from, the location block with the virtual host block, outside it, in the main body of httpd.conf and still is not happy.
The problem is that I just cannot find an example of this setting anywhere. Some posts say you can add this to your virtual host configuration, but then don't show how to do it.
Does anyone know how to configure this so that I can go to my .com / server-status domain and see server statistics, as expected?
Thanks a lot Mark
Marko source share