Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. user www;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error.log warn;
  5. pid /var/run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 1024;
  9. }
  10.  
  11. http {
  12. include /etc/nginx/mime.types;
  13. default_type application/octet-stream;
  14. sendfile on;
  15. access_log /var/log/nginx/access.log;
  16. keepalive_timeout 3000;
  17. server {
  18. listen 80;
  19. root /www/public;
  20. index index.html index.htm index.php;
  21. server_name localhost;
  22. client_max_body_size 32m;
  23. error_page 500 502 503 504 /50x.html;
  24. location = /50x.html {
  25. root /var/lib/nginx/html;
  26. }
  27. location ~ \.php$ {
  28. fastcgi_pass 127.0.0.1:9000;
  29. fastcgi_index index.php;
  30. include fastcgi.conf;
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement