Skip to content

Commit cdf1741

Browse files
kendrick-kweaverryan
authored andcommitted
symlink issues with php-fpm
# symlink fastcgi_param DOCUMENT_ROOT $realpath_root; permits to have the real path with the current symlink while deploying with Capifony (evoiding restarting php-fpm)
1 parent cbd91b4 commit cdf1741

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cookbook/configuration/web_server_configuration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,17 @@ The **minimum configuration** to get your application running under Nginx is:
269269
fastcgi_split_path_info ^(.+\.php)(/.*)$;
270270
include fastcgi_params;
271271
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
272+
# symlink
273+
fastcgi_param DOCUMENT_ROOT $realpath_root;
272274
}
273275
# PROD
274276
location ~ ^/app\.php(/|$) {
275277
fastcgi_pass unix:/var/run/php5-fpm.sock;
276278
fastcgi_split_path_info ^(.+\.php)(/.*)$;
277279
include fastcgi_params;
278280
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
281+
# symlink
282+
fastcgi_param DOCUMENT_ROOT $realpath_root;
279283
# Prevents URIs that include the front controller. This will 404:
280284
# http://domain.tld/app.php/some-path
281285
# Remove the internal directive to allow URIs like this

0 commit comments

Comments
 (0)