Basic-Auth for Shopware 6 with nginx
This page explains how to establish basic-auth for Shopware 6 when using nginx (instead of Apache).
htpasswd -c .htpasswd <user>map $request_uri $auth_type {
default "off";
~/api/* "off";
~* "vanWittlaer Demo Site";
}
......
auth_basic $auth_type;
auth_basic_user_file <path-to-your-htpasswd-file>/.htpasswd;
...Last updated