Hi Justin, thank you for this answer > ... (and can be dangerous IMO): > x="`tail -f /usr/local/nginx/logs/access.log |grep PUT |sed 's/["]//g' |awk > .... using tail on logs for this is very freaky;) but its a thinkable approach. To get only PUT requests I used an extra PUT log in the nginx config: if ($request_method = PUT) { access_log /by klml - Nginx Mailing List - English
I build a small static site generator: just PUT markdown from a textarea to a git versioned file and post-commit markdown.sh (and little bit templating) to html for nginx. The only thing I miss the commit triggerd by nginx after the PUT. I tried it with shell ect[^1] and even netcat ;) but nothing worked really nice. Is there an easy way to commit via nginx? thx klml [^1]: http://fby klml - Nginx Mailing List - English