<div>Hi,<br clear="all"></div><div><br></div><div>Let's say we have a sample configuration:</div><div><br></div><div>http {</div><div> server {</div><div> server_name "server1"</div><div> }</div><div><br>
</div><div> server {<br></div><div> server_name "server2"</div><div>} </div><div>..</div><div>}</div><div><br></div><div>Is that possible to define a single location entry (not using the include directive, which actually defined the entry for each server after include expand)</div>
<div>location /error {</div><div> error_handler</div><div>}</div><div>So that it could be use in all servers?</div><div><br></div><div>I try to define it at http level, but encounter error saying location could not be defined outside server.</div>
<div><br></div><div>Thanks<br></div>--<br>Qun-Ying<br><br>