Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Server-status for multiple vhosts domains |
|
Author |
|
MrPhoenix
Joined: 21 Jun 2016 Posts: 1 Location: Riga
|
Posted: Tue 21 Jun '16 19:50 Post subject: Server-status for multiple vhosts domains |
|
|
Hello!
I have problem setting up server-status for multiple vhosts while they are set up on domain.
I have lubuntu with apache 2.4 working as my server. And I want to make server-status for each one of them separated.
To put it simple, I want:
name1.domainhost.net/server-status
name2.domainhost.net/server-status
name3.domainhost.net/server-status
Right now I have 2 problems with it:
1. It counts statistics together, whenever I try to access each one individually. (also, tried with munin, apparently it does the same thing)
2. If i want it to work (to not get forbidden error), I must write:
Code: |
<Location /server-status>
SetHandler server-status
Require ip 100.100.100.100 #(not real one) this is isp provided
Require all denied #so noone else can access it. (doesn't affect)
</Location>
|
Everything is working fine. However, I don't want all machines from network to access it. I want to localize it to certain 192.168.x.x computers. It seems that the only way to access it with domain is to write isp provided ip insted of ipv4, tried other options but they didn't seem to work.
Any ideas?
Thank you in advance. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 25 Jun '16 22:14 Post subject: |
|
|
Use only Require IP 192.168 for the whole range. Or add single IPs
Require IP 192.168.100.1 192.168.100.2 |
|
Back to top |
|
|
|
|
|
|