netslt
asked on
Apache server-status
When I enter
rcapache2 server-status
on the command line I get:
==
Object not found!
The requested URL was not found on this server. If you entered the URL manually
please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Tue May 10 09:12:00 2011
Apache/2.2.3 (Linux/SUSE)
==
What do I have to configure to have the status displayed?
Thanks
rcapache2 server-status
on the command line I get:
==
Object not found!
The requested URL was not found on this server. If you entered the URL manually
please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Tue May 10 09:12:00 2011
Apache/2.2.3 (Linux/SUSE)
==
What do I have to configure to have the status displayed?
Thanks
Hi,
First of all check that the server is running or not?
Regards,
Tushar Kaskhedikar
First of all check that the server is running or not?
Regards,
Tushar Kaskhedikar
ASKER
@kaskhedikar_tushar: sure the server runs ;-)
Make sure that mod_status is loaded and on somewhere in httpd.conf or an included configuration file:
LoadModule status_module /path/to/mod_status.so
Optionally enable extended status:
<IfModule mod_status.c>
ExtendedStatus On
</IfModule>
Decide where you want to access the status page. You can add it to the server config or a specific vhost and the URL can be configured as well. For simplicity, lets assume you have one vhost and want to access www.mydomain.com/server-status. Add this to that vhost:
<Location /server-status>
SetHandler server-status
</Location>
It's SetHandler that does the magic. It makes sure that whenever the Location is requested, the output of mod_status is shown. You can add Allow/Deny rules to make sure only you can see what's going on, but that's a different subject.
LoadModule status_module /path/to/mod_status.so
Optionally enable extended status:
<IfModule mod_status.c>
ExtendedStatus On
</IfModule>
Decide where you want to access the status page. You can add it to the server config or a specific vhost and the URL can be configured as well. For simplicity, lets assume you have one vhost and want to access www.mydomain.com/server-status. Add this to that vhost:
<Location /server-status>
SetHandler server-status
</Location>
It's SetHandler that does the magic. It makes sure that whenever the Location is requested, the output of mod_status is shown. You can add Allow/Deny rules to make sure only you can see what's going on, but that's a different subject.
ASKER
Hi
I already had that in my virtual server.conf:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from all
</Location>
In my /etc/apache2/mod_status.co nf I have
==#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
#
# see http://httpd.apache.org/docs-2.2/mod/mod_status.html
#
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
#Deny from all
Allow from all
</Location>
</IfModule>
===
But when I call http://www.myvhost.com/server-status/
I get a 404 error, so something must be missing.
Thanks for helping...
I already had that in my virtual server.conf:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from all
</Location>
In my /etc/apache2/mod_status.co
==#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
#
# see http://httpd.apache.org/docs-2.2/mod/mod_status.html
#
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
Order deny,allow
#Deny from all
Allow from all
</Location>
</IfModule>
===
But when I call http://www.myvhost.com/server-status/
I get a 404 error, so something must be missing.
Thanks for helping...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_default_module (shared)
authz_user_module (shared)
authn_dbm_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
include_module (shared)
log_config_module (shared)
mime_module (shared)
negotiation_module (shared)
setenvif_module (shared)
ssl_module (shared)
suexec_module (shared)
userdir_module (shared)
php5_module (shared)
rewrite_module (shared)
Seems it is not loaded.
Where do I have to change something so it will be loaded?
Regarding using status or server-status with rcapache2: on SuSE "status" show wethere the server is running or not:
rcapache2 status
Checking for httpd2: running
so thats why server-status has to be used....
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_default_module (shared)
authz_user_module (shared)
authn_dbm_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
include_module (shared)
log_config_module (shared)
mime_module (shared)
negotiation_module (shared)
setenvif_module (shared)
ssl_module (shared)
suexec_module (shared)
userdir_module (shared)
php5_module (shared)
rewrite_module (shared)
Seems it is not loaded.
Where do I have to change something so it will be loaded?
Regarding using status or server-status with rcapache2: on SuSE "status" show wethere the server is running or not:
rcapache2 status
Checking for httpd2: running
so thats why server-status has to be used....
ASKER
I finally found out what was missing, I had to call
a2enmod mod_status
after that everything was working.
thanks for your help
a2enmod mod_status
after that everything was working.
thanks for your help
ASKER
the apache2ctl -t -D DUMP_MODULES command helped me to find the module was not loaded, so i just had to search on how to load it on a suse system
ASKER
By the way, its possible to call /server-status/ with a slash at the end, works...
http://forums.opensuse.org/english/get-technical-help-here/network-internet/449780-rcapache2-server-status-does-not-work.html
alternatively you can also check the service as
# /etc/init.d/apache2 status