<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<span id="mailbox-conversation"><div>location ^~ /categoria/personale-scolastico/area-docenti/ {</div>
<div> auth_basic "Restricted";</div>
<div> auth_basic_user_file /var/www/domain/.pswd_docenti;</div>
<div> try_files $uri $uri/ /index.php?$args;</div>
<div> include /etc/nginx/conf/*.conf;</div>
<div> }</div>
<div>location ^~ /personale/ {</div>
<div> auth_basic "Restricted";</div>
<div> auth_basic_user_file /var/www/domain/.pswd_docenti;</div>
<div> try_files $uri $uri/ /index.php?$args;</div>
<div> include /etc/nginx/conf/*.conf;</div>
<div> }</div>
<div><br></div>
<div>location ^~ /colloqui/bs-events {</div>
<div> auth_basic "Restricted";</div>
<div> auth_basic_user_file /var/www/domain/.pswd_docenti;</div>
<div> try_files $uri $uri/ /index.php?$args;</div>
<div> include /etc/nginx/conf/*.conf;</div>
<div> }</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div>Is there a way to combine these locations? The content of the blocks is the same...</div>
<div>I tried with location ^~ (/categoria/personale-scolastico/area-docenti/|/personale/|/colloqui/bs-events) but didn't work..</div></span><div class="mailbox_signature"><br></div>
</body></html>