Re: specific to index.php rest of them index.html

2016-10-03 Thread Tseveendorj Ochirlantuu
This is for symfony2 project. location ~ /location1 { fastcgi things; } location ~ /location2 { fastcgi things; } location ~ /location3 { fastcgi things; } location / { index index.html; } Above examples how fit to symfony2 below. Mine is # dev location ~ ^(app_dev|config)\.php$

Re: specific to index.php rest of them index.html

2016-10-03 Thread Richard Stanway
Why not use the location directive? This is what it is designed for. http://nginx.org/en/docs/http/ngx_http_core_module.html#location On Mon, Oct 3, 2016 at 12:28 PM, Tseveendorj Ochirlantuu < tseveend...@gmail.com> wrote: > Hello, > > I need to configure some locations go to index.php rest go

specific to index.php rest of them index.html

2016-10-03 Thread Tseveendorj Ochirlantuu
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:900