I want to modify the sourcecode or make a module that counts all the traffic served (interested in the static files) and maybe store the urls accessed as well Any ideea where to start? Getting the urls I've seen it's pretty simple from the module developing guide but counting traffic, well that's not so easy.by partysoft - New Member Introductions
Hi to all, I will introduce myself As a beginer to nginx I want to develop a module that controls the amount of bandwith but connects to a mysql db and updates the accounts userbased. Is is hard to do that? I think not right? nginx should have some event that notifies a method or something upon every byte served right? Oh well any advice I can get that could help me I can use, I really don't kby partysoft - New Member Introductions
Hello, i was wondering if the perl module can count the traffic being served by nginx... maybe per ip even.. the ideea is to limit at some point when reaches an amount like 200Mb / ipby partysoft - Nginx Mailing List - English
well parsing access logs, doesn't do the trick because each time a user tries to download a file, it actually calls my php script then the php script forwards with header and NginxXSendfile the file, then loses of course control.. so parsing logs won't do any trick becase it's the same effectby partysoft - Nginx Mailing List - English
Hi i have CENT OS and installed nginx from RPM using this guide, all works fine except it doesn't have some basic modules http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/ i get unknown directive "limit_req_zone" in /etc/nginx/nginx.conf i used for example limit_zone and it works, i'm not doing nothing fancy , just following the examples givenby partysoft - Nginx Mailing List - English
Hi, i haven't found a solution regarding nginx, and it's driving me nuts.. what i'm trying to do is limit the bandwith for each user that i have in a mysqlDB for some mp3. I already have the DB , and i've been trying to implement this with NginxXSendfile, but that doesn't count traffic , just No. of downloads by calling a php script, and the the php forwards to nginx the file transparently...by partysoft - Nginx Mailing List - English
Yes well good luck with that, i know it's a lot more dificult to work with async processes then sync like this one. Meanwhile i successfully added the X-Accel-Redirect to my web server and php and it works great.. we will see how it behaves in the future where hopefully i will have thousands of users downloading their files I have setup a LVS cluster in anycase , so i will use different serversby partysoft - Nginx Mailing List - English
is this 100% undetectable by the way? i haven't read any security reports about XFORWARDby partysoft - Nginx Mailing List - English
Is there a way to hide the nginx version not the banner itself from the headers? it's just anoying that some hacker will know my version of the nginx installed, well even the webserver i'm serving with ... there are exploits out there that do just that exploit exact versionsby partysoft - Nginx Mailing List - English
Yes that's exactly what i found meanwhile, but i've seen your post as well, accurate of course. Thank you so much for your reply... I've implemented a proxy pass to query the main server, a php that checks everything...then xforwards to the downloading server..it's amazing...simply transparent, and works like a charm... i've even implemented expiring links and such... My concern was that iby partysoft - Nginx Mailing List - English
I was wondering if i could implement some type of authentification to disallow the downloading of certain files.... What i'm trying to do is implement a downloading system based on user accounts...something like Rapidshare..but just the basic : ask for the user pass before downloading... it would be nice if i could implement this through a PHP or page but i don't want to serve with PHP ..thrby partysoft - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |