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 207207 try_files $uri /app.php$is_args$args;
208208 }
209209 # 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
212212 location ~ ^/(app_dev|config)\.php(/|$) {
213213 fastcgi_pass unix:/var/run/php5-fpm.sock;
214214 fastcgi_split_path_info ^(.+\.php)(/.*)$;
223223 include fastcgi_params;
224224 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
225225 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:
228227 # http://domain.tld/app.php/some-path
228+ # Remove the internal directive to allow URI's like this
229229 internal;
230230 }
231231
You can’t perform that action at this time.
0 commit comments