Web statistics on Lighttpd - can anyone interpret the language?
3 posters
Page 1 of 1
Re: Web statistics on Lighttpd - can anyone interpret the language?
Many thanks to both of you for the input. I just got back this weekend and am able to catchup a bit with the forum and e-mail. I will try entering the hode in an HTML file and see what happens. I have two RaPIs so I can experiment with one while I keep the other in operation.
BR Harry
BR Harry
_________________
Everything in this world is either bacon, or it isn't bacon
They say that money cannot bring you happiness, but if you have it then you can always buy more bacon
Re: Web statistics on Lighttpd - can anyone interpret the language?
MNI TNX TO VK2AAV
BR DE IVAN OK1SIP
BR DE IVAN OK1SIP
Ivan- Posts : 811
Join date : 2012-11-25
Age : 65
Location : Praha, Czechia
Re: Web statistics on Lighttpd - can anyone interpret the language?
Ivan wrote:Hi Harry,
I am no Linux expert, but it seems to me you should really put the code onto your webpage. Replace the 10.0.0.0/8 with the address and port you want to access the stats from (i.e. your LAN, say 192.168.240.0/80). You should be able to access the /server-status page from your computer on your LAN, whilst other users should not see it.
VBR from Ivan
Yes, I think you are right, Ivan. The /8 though, is the 'netmask' and not the port, ie it specifies how many bits of the specified address are to be matched. Therefore 192.168.240.1/8 would mean that all addresses starting with 192 would be allowed, /16 would mean 192.168, /24 would mean 192.168.240, and /32 would allow only 192.168.240.1.
Cheers,
Steve
Re: Web statistics on Lighttpd - can anyone interpret the language?
Hi Harry,
I am no Linux expert, but it seems to me you should really put the code onto your webpage. Replace the 10.0.0.0/8 with the address and port you want to access the stats from (i.e. your LAN, say 192.168.240.0/80). You should be able to access the /server-status page from your computer on your LAN, whilst other users should not see it.
VBR from Ivan
I am no Linux expert, but it seems to me you should really put the code onto your webpage. Replace the 10.0.0.0/8 with the address and port you want to access the stats from (i.e. your LAN, say 192.168.240.0/80). You should be able to access the /server-status page from your computer on your LAN, whilst other users should not see it.
VBR from Ivan
Ivan- Posts : 811
Join date : 2012-11-25
Age : 65
Location : Praha, Czechia
Web statistics on Lighttpd - can anyone interpret the language?
http://redmine.lighttpd.net/projects/1/wiki/Docs_ModStatus
I have seen quite a few tutorial for the Lighttpd web server on Raspberry Pi. I have a little skill in Linux and Unix commands and I have bumbled my way around the configurations files. I managed to switch ON the index listing (on directories with no index.html file). Find IP addresses, change to static IP address, port forwarding to the new server and 50/11 other things.
BUT
How the $£@# do you get a hits counter? I have added the statistics mod code to the config file (server.modules = ( ..., "mod_status", ... ))and there are no errors when the server starts.
So where do I use the following code:
$HTTP["remoteip"] == "10.0.0.0/8" {
status.status-url = "/server-status"
}
Is this the code I stuff in my HTML file? What is "10.0.0.0/8" refering to? I do not recall any such address in my network. Everything internal is 192.168.240.xxx, 192.168.241.xxx and 192.168.242.xxx (green, orange and blue networks).
I have been trying to get the server stats going for a while but now it is getting serious for me. Beside that, it is about the only thing I can do while I am travelling.
Best regards from Harry - SM0VPO
I have seen quite a few tutorial for the Lighttpd web server on Raspberry Pi. I have a little skill in Linux and Unix commands and I have bumbled my way around the configurations files. I managed to switch ON the index listing (on directories with no index.html file). Find IP addresses, change to static IP address, port forwarding to the new server and 50/11 other things.
BUT
How the $£@# do you get a hits counter? I have added the statistics mod code to the config file (server.modules = ( ..., "mod_status", ... ))and there are no errors when the server starts.
So where do I use the following code:
$HTTP["remoteip"] == "10.0.0.0/8" {
status.status-url = "/server-status"
}
Is this the code I stuff in my HTML file? What is "10.0.0.0/8" refering to? I do not recall any such address in my network. Everything internal is 192.168.240.xxx, 192.168.241.xxx and 192.168.242.xxx (green, orange and blue networks).
I have been trying to get the server stats going for a while but now it is getting serious for me. Beside that, it is about the only thing I can do while I am travelling.
Best regards from Harry - SM0VPO
_________________
Everything in this world is either bacon, or it isn't bacon
They say that money cannot bring you happiness, but if you have it then you can always buy more bacon
Page 1 of 1
Permissions in this forum:
You can reply to topics in this forum
|
|