LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-05-2010, 04:11 AM   #1
dico
LQ Newbie
 
Registered: Aug 2010
Posts: 14

Rep: Reputation: 0
Apache Server-Status with mod_status


dear all,

I used to use a host with WHM as a control panel. And it has a feature to display Apache Status, and it will give a display like this. I've learn from here that I only need to add this config at my httpd.conf:

Code:
<Location /server-status>
   SetHandler server-status
   Order Deny,Allow
   Deny from all
   Allow from 10.1.2.5
</Location>
My problem is I can't state my ip in the "allow from" part because my IP is uncertain (DHCP generated), but I don't want anyone else to be able to see my Apache Status. I've tried using htpasswd but with no luck.

Is there any way I can put an authentication on my server-status? And if it's possible I'll be glad if I can hid my server-status under Webmin since my new host using webmin as a control panel.

Any ideas are welcome.

regards,

Dico
 
Old 11-05-2010, 04:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can use the following:
Code:
<Location /server-status>
   SetHandler server-status
   Order Deny,Allow
AuthUserFile /path/to/htpasswd
AuthName "Server Status"
AuthType Basic
require user dico
</Location>
Since I don't use webmin, I cannot help you for the webmin part.

Regards
 
1 members found this post helpful.
Old 11-08-2010, 10:00 PM   #3
dico
LQ Newbie
 
Registered: Aug 2010
Posts: 14

Original Poster
Rep: Reputation: 0
@bathory: Thanks, it works
I forgot my old config but it's not working. So I can't compare where I did wrong.

Quote:
Since I don't use webmin, I cannot help you for the webmin part.
That's ok. Again, thanks

regards,

dico
 
  


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
Server-status (mod_status) not working - keep getting 404 Not Found. Zippy1970 Linux - Server 2 09-28-2008 09:31 AM
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 01:22 AM.

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