specific to index.php rest of them index.html

Tseveendorj Ochirlantuu tseveendorj at gmail.com
Mon Oct 3 10:28:19 UTC 2016


Hello,

I need to configure some locations go to index.php rest go to index.html


if ($request_uri !~ ^/(location1|location2|location3)$ ) {
                  rewrite ^(.*) /index.html;
}

but how to else ?

if the request contains location1, location2, location3 goes to
fastcgi_pass 127.0.0.1:9000;
if not contain go to /index.html

regards,
tseveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161003/f4869f4c/attachment.html>


More information about the nginx mailing list