Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

specific to index.php rest of them index.html (2 replies)

$
0
0
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>