301 executes before authentication

Grant emailgrant at gmail.com
Mon Oct 5 17:05:51 UTC 2015

I have a server block that contains the following:

auth_basic "Please log in.";
location = / {
    return 301 https://$host:$server_port/folder/;

I noticed that /folder/ is appended to the URL before the user is
prompted for authentication.  Can that behavior be changed?

- Grant

More information about the nginx mailing list