Web statistics on Lighttpd - can anyone interpret the language?

Post new topic   Reply to topic

View previous topic View next topic Go down

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

Post by Admin on Sat Jul 20, 2013 5: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

_________________
(Thanks to those who tried and couldn't make the QSO. Back on 14.200MHz Sundays from the 24th Sept.)
avatar
Admin
Admin

Posts : 440
Join date : 2012-11-24
Age : 66
Location : Märsta, Sweden

View user profile http://www.sm0vpo.com

Back to top Go down

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

Post by Ivan on Thu Jul 11, 2013 6:07 am

MNI TNX TO VK2AAV

BR DE IVAN OK1SIP

Ivan

Posts : 181
Join date : 2012-11-25
Location : Praha, Czechia

View user profile

Back to top Go down

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

Post by vk2aav on Thu Jul 11, 2013 4: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

View user profile http://telecnatron.com/

Back to top Go down

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

Post by Ivan on Wed Jul 10, 2013 6: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 : 181
Join date : 2012-11-25
Location : Praha, Czechia

View user profile

Back to top Go down

Web statistics on Lighttpd - can anyone interpret the language?

Post by Admin on Mon Jul 08, 2013 8: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

_________________
(Thanks to those who tried and couldn't make the QSO. Back on 14.200MHz Sundays from the 24th Sept.)
avatar
Admin
Admin

Posts : 440
Join date : 2012-11-24
Age : 66
Location : Märsta, Sweden

View user profile http://www.sm0vpo.com

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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