File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 207
207
try_files $uri /app.php$is_args$args;
208
208
}
209
209
# DEV
210
- # Be sure to remove app_dev.php and config.php scripts when app is
211
- # deployed to PROD environment, this rule only must be placed on DEV
210
+ # This rule should only be placed on your development environment
211
+ # In production, don't include this and don't deploy app_dev.php or config.php
212
212
location ~ ^/(app_dev|config)\.php(/|$) {
213
213
fastcgi_pass unix:/var/run/php5-fpm.sock;
214
214
fastcgi_split_path_info ^(.+\.php)(/.*)$;
223
223
include fastcgi_params;
224
224
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
225
225
fastcgi_param HTTPS off;
226
- # prevent explicit access and hide front controller
227
- # remove "internal" directive if you want to allow uri's like
226
+ # Prevents URI's that include the front controller. This will 404:
228
227
# http://domain.tld/app.php/some-path
228
+ # Remove the internal directive to allow URI's like this
229
229
internal;
230
230
}
231
231
You can’t perform that action at this time.
0 commit comments