Execute script on GET to certain url lighttpd [closed]












1















Is it possible to do an action (run shell script with parameters) when anybody access files on lighttpd server?



I mean like it can be done in nginx. I am implementing notifications daemon which notifies me when files are accessed in one folder with ip information and timestamp.



I can do that by parsing access log with small daemon but I wonder if it's possible to do by just few lines in lighttpd.conf without reinventing the wheel.



I am NOT interested in launching bash scripts as CGI, and writing PHP script that will pass files and do rewrite to url line, that not that case, it's will remove that tinyness and simpleness from current configuration that is the reason that I'm using lighttpd.










share|improve this question













closed as too broad by Rui F Ribeiro, jimmij, Mr Shunz, Jeff Schaller, Christopher Feb 5 at 17:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • It might help in replicating the nginx behavior if you demonstrated (or pointed to) the configuration that does the work in nginx.

    – Jeff Schaller
    Feb 4 at 16:16











  • @JeffSchaller stackoverflow.com/questions/22891148/…

    – POMATu
    Feb 5 at 12:16











  • Noting that the linked SO answer requires a module that "is not distributed with the Nginx source."

    – Jeff Schaller
    Feb 5 at 12:25











  • Did you manage to find a solution to this in the end?

    – justinpc
    Feb 13 at 21:05






  • 1





    @justinpc You can pipe any log with tail, then do line by line processing in any script: tail -f /var/log/syslog | while read line; do echo TEST:$line; done

    – POMATu
    yesterday
















1















Is it possible to do an action (run shell script with parameters) when anybody access files on lighttpd server?



I mean like it can be done in nginx. I am implementing notifications daemon which notifies me when files are accessed in one folder with ip information and timestamp.



I can do that by parsing access log with small daemon but I wonder if it's possible to do by just few lines in lighttpd.conf without reinventing the wheel.



I am NOT interested in launching bash scripts as CGI, and writing PHP script that will pass files and do rewrite to url line, that not that case, it's will remove that tinyness and simpleness from current configuration that is the reason that I'm using lighttpd.










share|improve this question













closed as too broad by Rui F Ribeiro, jimmij, Mr Shunz, Jeff Schaller, Christopher Feb 5 at 17:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • It might help in replicating the nginx behavior if you demonstrated (or pointed to) the configuration that does the work in nginx.

    – Jeff Schaller
    Feb 4 at 16:16











  • @JeffSchaller stackoverflow.com/questions/22891148/…

    – POMATu
    Feb 5 at 12:16











  • Noting that the linked SO answer requires a module that "is not distributed with the Nginx source."

    – Jeff Schaller
    Feb 5 at 12:25











  • Did you manage to find a solution to this in the end?

    – justinpc
    Feb 13 at 21:05






  • 1





    @justinpc You can pipe any log with tail, then do line by line processing in any script: tail -f /var/log/syslog | while read line; do echo TEST:$line; done

    – POMATu
    yesterday














1












1








1








Is it possible to do an action (run shell script with parameters) when anybody access files on lighttpd server?



I mean like it can be done in nginx. I am implementing notifications daemon which notifies me when files are accessed in one folder with ip information and timestamp.



I can do that by parsing access log with small daemon but I wonder if it's possible to do by just few lines in lighttpd.conf without reinventing the wheel.



I am NOT interested in launching bash scripts as CGI, and writing PHP script that will pass files and do rewrite to url line, that not that case, it's will remove that tinyness and simpleness from current configuration that is the reason that I'm using lighttpd.










share|improve this question














Is it possible to do an action (run shell script with parameters) when anybody access files on lighttpd server?



I mean like it can be done in nginx. I am implementing notifications daemon which notifies me when files are accessed in one folder with ip information and timestamp.



I can do that by parsing access log with small daemon but I wonder if it's possible to do by just few lines in lighttpd.conf without reinventing the wheel.



I am NOT interested in launching bash scripts as CGI, and writing PHP script that will pass files and do rewrite to url line, that not that case, it's will remove that tinyness and simpleness from current configuration that is the reason that I'm using lighttpd.







notifications lighttpd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 4 at 15:58









POMATuPOMATu

1062




1062




closed as too broad by Rui F Ribeiro, jimmij, Mr Shunz, Jeff Schaller, Christopher Feb 5 at 17:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by Rui F Ribeiro, jimmij, Mr Shunz, Jeff Schaller, Christopher Feb 5 at 17:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • It might help in replicating the nginx behavior if you demonstrated (or pointed to) the configuration that does the work in nginx.

    – Jeff Schaller
    Feb 4 at 16:16











  • @JeffSchaller stackoverflow.com/questions/22891148/…

    – POMATu
    Feb 5 at 12:16











  • Noting that the linked SO answer requires a module that "is not distributed with the Nginx source."

    – Jeff Schaller
    Feb 5 at 12:25











  • Did you manage to find a solution to this in the end?

    – justinpc
    Feb 13 at 21:05






  • 1





    @justinpc You can pipe any log with tail, then do line by line processing in any script: tail -f /var/log/syslog | while read line; do echo TEST:$line; done

    – POMATu
    yesterday



















  • It might help in replicating the nginx behavior if you demonstrated (or pointed to) the configuration that does the work in nginx.

    – Jeff Schaller
    Feb 4 at 16:16











  • @JeffSchaller stackoverflow.com/questions/22891148/…

    – POMATu
    Feb 5 at 12:16











  • Noting that the linked SO answer requires a module that "is not distributed with the Nginx source."

    – Jeff Schaller
    Feb 5 at 12:25











  • Did you manage to find a solution to this in the end?

    – justinpc
    Feb 13 at 21:05






  • 1





    @justinpc You can pipe any log with tail, then do line by line processing in any script: tail -f /var/log/syslog | while read line; do echo TEST:$line; done

    – POMATu
    yesterday

















It might help in replicating the nginx behavior if you demonstrated (or pointed to) the configuration that does the work in nginx.

– Jeff Schaller
Feb 4 at 16:16





It might help in replicating the nginx behavior if you demonstrated (or pointed to) the configuration that does the work in nginx.

– Jeff Schaller
Feb 4 at 16:16













@JeffSchaller stackoverflow.com/questions/22891148/…

– POMATu
Feb 5 at 12:16





@JeffSchaller stackoverflow.com/questions/22891148/…

– POMATu
Feb 5 at 12:16













Noting that the linked SO answer requires a module that "is not distributed with the Nginx source."

– Jeff Schaller
Feb 5 at 12:25





Noting that the linked SO answer requires a module that "is not distributed with the Nginx source."

– Jeff Schaller
Feb 5 at 12:25













Did you manage to find a solution to this in the end?

– justinpc
Feb 13 at 21:05





Did you manage to find a solution to this in the end?

– justinpc
Feb 13 at 21:05




1




1





@justinpc You can pipe any log with tail, then do line by line processing in any script: tail -f /var/log/syslog | while read line; do echo TEST:$line; done

– POMATu
yesterday





@justinpc You can pipe any log with tail, then do line by line processing in any script: tail -f /var/log/syslog | while read line; do echo TEST:$line; done

– POMATu
yesterday










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀