I&#39;ve looked around for this but haven&#39;t come across the answer.&nbsp; I am wondering if it is possible to have a maintenance page be displayed for one subdirectory but not the other.<br><br>I have 2 apps on same machine with a root of /public_html/&nbsp; <br>
App 1 is /public_html/app1/<br>App 2 is /public_html/app2/<br><br>I want the maintenance page to be shown for app 1 only when it exists in the app 1 subdirectory.<br><br>This looks like it would show it for both applications:<br>
<br><pre>if (-f $document_root/system/maintenance.html) {<br>  rewrite  ^(.*)$  /system/maintenance.html last;<br>  break;<br>}<br></pre>Is there a way to rewrite only the requests for a certain directory without making manual changes like this:<br>
<br><pre>if (-f $document_root/app1/maintenance.html) {<br>  rewrite  ^(.*)$  /app1/maintenance.html last;<br>  break;<br>}</pre>
<br>