I have an nginx server. I'd like to have directories available online but only if a certain password is supplied. Would it be bad to do something like:
location /password=mysuperstrongpassword {
root /mydir
}
Is there a better way of accomplishing this?
Along the same lines, can someone point me in the direction of how to write a script that creates a new password every week or so, rewrites this page, and emails me the new password? Thanks!