File tree
Expand file treeCollapse file tree1 file changed
+4
-0
lines changed Expand file treeCollapse file tree1 file changed
+4
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -269,13 +269,17 @@ The **minimum configuration** to get your application running under Nginx is:
|
269 | 269 | fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
270 | 270 | include fastcgi_params;
|
271 | 271 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
| 272 | +# symlink |
| 273 | +fastcgi_param DOCUMENT_ROOT $realpath_root; |
272 | 274 | }
|
273 | 275 | # PROD
|
274 | 276 | location ~ ^/app\.php(/|$) {
|
275 | 277 | fastcgi_pass unix:/var/run/php5-fpm.sock;
|
276 | 278 | fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
277 | 279 | include fastcgi_params;
|
278 | 280 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
| 281 | +# symlink |
| 282 | +fastcgi_param DOCUMENT_ROOT $realpath_root; |
279 | 283 | # Prevents URIs that include the front controller. This will 404:
|
280 | 284 | # http://domain.tld/app.php/some-path
|
281 | 285 | # Remove the internal directive to allow URIs like this
|
|
You can’t perform that action at this time.
0 commit comments