Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4.  
  5. server_name example.com www.example.com;
  6.  
  7. root /var/www/example.com/public;
  8. index index.php index.html index.htm;
  9.  
  10. charset utf-8;
  11.  
  12. location / {
  13. try_files $uri $uri/ /index.php?$query_string;
  14. }
  15.  
  16. client_max_body_size 100m;
  17.  
  18. location ~ \.php$ {
  19. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  20. fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. fastcgi_index index.php;
  22. include fastcgi_params;
  23. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24. fastcgi_intercept_errors off;
  25. fastcgi_buffer_size 16k;
  26. fastcgi_buffers 4 16k;
  27. }
  28.  
  29. location ~ /\.ht {
  30. deny all;
  31. }
  32.  
  33. location ~ \.php$ {
  34. return 444;
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement