location ^~ /categoria/personale-scolastico/area-docenti/ {
auth_basic "Restricted";
auth_basic_user_file /var/www/domain/.pswd_docenti;
try_files $uri $uri/ /index.php?$args;
include /etc/nginx/conf/*.conf;
}
location ^~ /personale/ {
auth_basic "Restricted";
auth_basic_user_file /var/www/domain/.pswd_docenti;
try_files $uri $uri/ /index.php?$args;
include /etc/nginx/conf/*.conf;
}
location ^~ /colloqui/bs-events {
auth_basic "Restricted";
auth_basic_user_file /var/www/domain/.pswd_docenti;
try_files $uri $uri/ /index.php?$args;
include /etc/nginx/conf/*.conf;
}
Is there a way to combine these locations? The content of the blocks is the same...
I tried with location ^~ (/categoria/personale-scolastico/area-docenti/|/personale/|/colloqui/bs-events) but didn't work.._______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx