Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name domain.tld www.domain.tld;
- root /var/www/project/public;
- location / {
- try_files $uri /index.php$is_args$args;
- }
- location ~ ^/index\.php(/|$) {
- fastcgi_pass php-fpm:9000; # application being the DNS to reach the php-fpm upstream
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- fastcgi_param DOCUMENT_ROOT $realpath_root;
- internal;
- }
- }
Add Comment
Please, Sign In to add comment