LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-09-2016, 01:33 AM   #1
hruday
Member
 
Registered: Jun 2015
Posts: 88

Rep: Reputation: Disabled
Server Status - Apache 2.4.6


I am using centos 7 with apache 2.4.6

I want a report of all requests getting to my web server apache so i used server status by loading server status module in apache.

but it is not working

below is my configuration

<Location "/server-status">
SetHandler server-status

Require all granted

</Location>

Nothing is displayed if i give url www.domainxyz.com/server-status

How can i get server-status?

Last edited by hruday; 05-09-2016 at 08:01 AM.
 
Old 05-09-2016, 06:29 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What do the apache2 logs say? (Should always be the 'goto' place to look).
 
Old 05-09-2016, 07:50 AM   #3
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
What do the apache2 logs say? (Should always be the 'goto' place to look).
access log says: "GET /server-status HTTP/1.1" 404
 
Old 05-09-2016, 08:02 AM   #4
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hruday View Post
access log says: "GET /server-status HTTP/1.1" 404
my domain also redirects to www.domainxyz.com/abc

I mean when i type www.domainxyz.com it will redirect to www.domainxyz.com/abc

is it causing any problem to get server status?

Last edited by hruday; 05-09-2016 at 08:03 AM.
 
Old 05-09-2016, 08:44 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
"logs" is plural.
Apache2 writes access and error logs.
404 is an error code.
Check /var/log/httpd/error.log

I forget where in CentOS apache2's conf system
where did you edit/enable
Code:
/server-status
exactly?

Last edited by Habitual; 05-09-2016 at 09:29 AM.
 
Old 05-10-2016, 07:08 AM   #6
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
"logs" is plural.
Apache2 writes access and error logs.
404 is an error code.
Check /var/log/httpd/error.log

I forget where in CentOS apache2's conf system
where did you edit/enable
Code:
/server-status
exactly?
I edited this in my domain's virtualhost (not in httpd.conf)

Do i have to add lines in httpd.conf.!?
 
Old 05-10-2016, 07:23 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hruday View Post
I edited this in my domain's virtualhost (not in httpd.conf)

Do i have to add lines in httpd.conf.!?
Since "server-status" is a server module, I'd expect any edits for that resource, if any,
would take place in /etc/httpd/conf/httpd.conf

https://duckduckgo.com/?q=server-status+%2Bapache2+
suggests you need to check and/or enable mod_status

Not sure how that's done exactly on CentOS's build of apache2. Sorry.

Last edited by Habitual; 05-10-2016 at 07:26 AM.
 
Old 05-10-2016, 08:43 AM   #8
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Since "server-status" is a server module, I'd expect any edits for that resource, if any,
would take place in /etc/httpd/conf/httpd.conf

https://duckduckgo.com/?q=server-status+%2Bapache2+
suggests you need to check and/or enable mod_status

Not sure how that's done exactly on CentOS's build of apache2. Sorry.
I have loaded the module.

It not working centos 7 with apache 2.4.6.

Otherwise do we have any tool that can do the task?
 
Old 05-10-2016, 09:22 AM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
The redirect just may be the issue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] server-status in Apache??? your_shadow03 Linux - Newbie 1 10-11-2009 11:19 AM
Apache server-status uks Linux - Software 5 03-09-2009 02:23 PM
apache server-status ilnli Linux - Software 0 07-11-2007 08:32 PM
Apache server-status help javamdk Linux - Networking 4 03-27-2005 08:45 PM
Apache server-status help javamdk Ubuntu 1 03-27-2005 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration