<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 26/09/13 19:20, Maurizio De Santis
wrote:<br>
</div>
<blockquote cite="mid:5243E040.3000607@morganspa.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div class="moz-text-html" lang="x-western">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-western">I have two locations, /a
and /b . Both of them share these directives <br>
<br>
expires max; <br>
add_header Cache-Control public; <br>
add_header ETag ""; <br>
break; <br>
<br>
and location /b to has gzip_static on too. <br>
<br>
Is there a way to write this without writing two times the
common directives? <br>
That is, without rewriting the common directives like this: <br>
<br>
location /a { <br>
expires max; <br>
add_header Cache-Control public; <br>
add_header ETag ""; <br>
break; <br>
} <br>
<br>
location /b { <br>
gzip_static on; <br>
expires max; <br>
add_header Cache-Control public; <br>
add_header ETag ""; <br>
break; <br>
} <br>
<br>
Generally speaking, is there a way to declare a block so as to
be shared between two or more locations without rewriting the
common directives? <br>
<br>
Thank you <br>
<br>
-- <br>
<br>
Maurizio De Santis <br>
</div>
</div>
<br>
</blockquote>
include them from a remote file?<br>
</body>
</html>