Guest User

nginx.conf

a guest
Sep 12th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. user http http;
  2. worker_processes 1;
  3.  
  4. events {
  5. worker_connections 64;
  6. }
  7.  
  8.  
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12. sendfile on;
  13. keepalive_timeout 80;
  14.  
  15. server {
  16. disable_symlinks off;
  17. listen 80;
  18. server_name localhost pi.lan;
  19. root /srv/nginx;
  20.  
  21. location / {
  22. index index.html index.htm index.php;
  23. }
  24.  
  25. location /ps/ {
  26. fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
  27. fastcgi_index index.php;
  28. include fastcgi.conf;
  29. }
  30.  
  31. error_page 500 502 503 504 /50x.html;
  32. location = /50x.html {
  33. root /usr/share/nginx/html;
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment