Guest User

Untitled

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. server {
  2. server_name domain.tld www.domain.tld;
  3. root /var/www/project/public;
  4.  
  5. location / {
  6. try_files $uri /index.php$is_args$args;
  7. }
  8.  
  9. location ~ ^/index\.php(/|$) {
  10. fastcgi_pass php-fpm:9000; # application being the DNS to reach the php-fpm upstream
  11. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  12. include fastcgi_params;
  13.  
  14. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  15. fastcgi_param DOCUMENT_ROOT $realpath_root;
  16. internal;
  17. }
  18. }
Add Comment
Please, Sign In to add comment