Guest User

Untitled

a guest
Mar 23rd, 2016
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. user nginx;
  2. worker_processes 8;
  3. error_log /var/log/nginx/error.log;
  4. pid /run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 1024;
  8. }
  9.  
  10. http {
  11.  
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. keepalive_timeout 65;
  16. types_hash_max_size 2048;
  17.  
  18. include /etc/nginx/mime.types;
  19. default_type application/octet-stream;
  20.  
  21. upstream backend {
  22. server unix:/var/www/www.sock;
  23. # server 127.0.0.1:9000;
  24. }
  25.  
  26. server {
  27. listen 80 default_server;
  28. server_name _;
  29. root /var/www/public;
  30. index index.php;
  31.  
  32. location / {
  33. try_files $uri $uri/ /index.php;
  34. }
  35.  
  36. location ~ \.php$ {
  37. try_files $uri =404;
  38. fastcgi_pass backend;
  39. fastcgi_index index.php;
  40. fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
  41. include fastcgi_params;
  42. }
  43. }
  44. }
Add Comment
Please, Sign In to add comment