SM0VPO Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Web statistics on Lighttpd - can anyone interpret the language?

3 posters
Post new topic   Reply to topic

Go down

Web statistics on Lighttpd - can anyone interpret the language? Empty Re: Web statistics on Lighttpd - can anyone interpret the language?

Post by admin Sat Jul 20, 2013 7:50 pm

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

_________________
Everything in this world is either bacon, or it isn't bacon  Cool
They say that money cannot bring you happiness, but if you have it then you can always buy more bacon Very Happy
admin
admin
Admin

Posts : 1144
Join date : 2012-11-24
Age : 72
Location : Märsta, Sweden

http://www.sm0vpo.com

Back to top Go down

Web statistics on Lighttpd - can anyone interpret the language? Empty Re: Web statistics on Lighttpd - can anyone interpret the language?

Post by Ivan Thu Jul 11, 2013 8:07 am

MNI TNX TO VK2AAV

BR DE IVAN OK1SIP

Ivan

Posts : 788
Join date : 2012-11-25
Age : 64
Location : Praha, Czechia

Back to top Go down

Web statistics on Lighttpd - can anyone interpret the language? Empty Re: Web statistics on Lighttpd - can anyone interpret the language?

Post by vk2aav Thu Jul 11, 2013 6:04 am

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

vk2aav

Posts : 5
Join date : 2012-11-25
Location : Sydney, Australia

http://telecnatron.com/

Back to top Go down

Web statistics on Lighttpd - can anyone interpret the language? Empty Re: Web statistics on Lighttpd - can anyone interpret the language?

Post by Ivan Wed Jul 10, 2013 8:37 am

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

Ivan

Posts : 788
Join date : 2012-11-25
Age : 64
Location : Praha, Czechia

Back to top Go down

Web statistics on Lighttpd - can anyone interpret the language? Empty Web statistics on Lighttpd - can anyone interpret the language?

Post by admin Mon Jul 08, 2013 10:01 pm

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

_________________
Everything in this world is either bacon, or it isn't bacon  Cool
They say that money cannot bring you happiness, but if you have it then you can always buy more bacon Very Happy
admin
admin
Admin

Posts : 1144
Join date : 2012-11-24
Age : 72
Location : Märsta, Sweden

http://www.sm0vpo.com

Back to top Go down

Web statistics on Lighttpd - can anyone interpret the language? Empty Re: Web statistics on Lighttpd - can anyone interpret the language?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


Post new topic   Reply to topic
 
Permissions in this forum:
You can reply to topics in this forum