Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Log VLC access requests in nginx

$
0
0
That makes sense. Especially with the following tests.
How can I capture the request in Lua, please?

I'm allowing users inside my company to access these urls without authentication, based on their IP.
If I access the url from outside the company, with an unknown IP, then it requires a couple of login/password thanks to auth_basic_user_file. In this case, I see an access log entry when the GET request arrives, with the user IP. But, the username is logged only when the stream ends.
Here is the flow:
1 - Access http://tv.mydomain.com/channel1 from an unknown IP
2 - The following entry is logged:
193.74.128.232 - - [15/Sep/2015:11:37:17 +0200] "GET /channel1 HTTP/1.1" 401 194 "-" "VLC/2.1.2 LibVLC/2.1.2"
3 - I enter my login/password in vlc
4 - I end the stream by closing vlc window
5 - The following entry is logged:
193.74.128.232 - elgarne [15/Sep/2015:11:40:53 +0200] "GET /channel1 HTTP/1.1" 200 62060342 "-" "VLC/2.1.2 LibVLC/2.1.2"

Ideally, I'd like to have steps 4 and 5 switched, in order to know, before user ends the stream, who is watching what.
Thanks again.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>