I have a server that is password protected, where I store files that I want my users to be able to access only if they have the rights.
In the NGiNX configs I want to be able to do something like this:
So that a user could go to this address:
And then in the server the configs will point to this address:
Also is there a way to call a script (best would be PHP) to see if the person accessing the file as been logged in.
My sessions are saved on another server (on a Redis DB) so if it is not possible to do it with PHP is there another way?
So how do I configure this?