Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 768;
  7. }
  8.  
  9. http {
  10. sendfile on;
  11. tcp_nopush on;
  12. tcp_nodelay on;
  13. keepalive_timeout 65;
  14. types_hash_max_size 2048;
  15. include /etc/nginx/mime.types;
  16. default_type application/octet-stream;
  17.  
  18. server {
  19. listen 80 default_server;
  20. listen [::]:80 default_server ipv6only=on;
  21. root /srv/www;
  22. server_name localhost;
  23.  
  24. location ~ \.php$ {
  25. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  26. fastcgi_pass unix:/var/run/php5-fpm.sock;
  27. fastcgi_index index.php;
  28. include fastcgi_params;
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement