Guest User

Untitled

a guest
Jun 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. server {
  2. listen 80;
  3. root /var/www/nexus;
  4. server_name nexus.com;
  5. index index.php index.html;
  6.  
  7. location ~ \.php$ {
  8. include snippets/fastcgi-php.conf;
  9. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  10. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  11. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  12.  
  13. fastcgi_buffer_size 128k;
  14. fastcgi_buffers 256 16k;
  15. fastcgi_busy_buffers_size 256k;
  16. fastcgi_temp_file_write_size 256k;
  17. }
  18.  
  19. location / {
  20. try_files $uri $uri/ /sudoshutdownnow.php?$request_uri;
  21. }
  22.  
  23. location ~ /\.ht {
  24. deny all;
  25. }
  26.  
  27. location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml|mp3)$ {
  28. access_log off;
  29. log_not_found off;
  30. expires 30d;
  31. }
  32.  
  33. }
Add Comment
Please, Sign In to add comment