Guest User

Untitled

a guest
Jan 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5. root /var/www/html;
  6.  
  7. index index.php index.html index.htm index.nginx-debian.html;
  8.  
  9. server_name _;
  10.  
  11. location / {
  12. try_files $uri $uri/ =404;
  13. }
  14.  
  15. location ~ .php$ {
  16. fastcgi_split_path_info ^(.+.php)(/.+)$;
  17. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  18. fastcgi_index index.php;
  19. include fastcgi.conf;
  20. }
  21. }
  22.  
  23. server {
  24. listen 80;
  25. server_name _;
  26. index index.php;
  27. error_log /var/www/html/test_slim/error.log;
  28. access_log /var/www/html/test_slim/access.log;
  29. root /var/www/html/test_slim/src/public;
  30.  
  31. location /test_slim/ {
  32. try_files $uri /index.php$is_args$args;
  33. }
  34.  
  35. location ~ .php {
  36. try_files $uri =404;
  37. fastcgi_split_path_info ^(.+.php)(/.+)$;
  38. include fastcgi.conf;
  39. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  40. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  41. fastcgi_index index.php;
  42. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  43. }
  44. }
Add Comment
Please, Sign In to add comment