Advertisement
Guest User

Untitled

a guest
May 14th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. user nginx nginx;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error_log info;
  5.  
  6. events {
  7. worker_connections 1024;
  8. use epoll;
  9. }
  10.  
  11. http {
  12. include /etc/nginx/mime.types;
  13. default_type application/octet-stream;
  14.  
  15. client_max_body_size 128M;
  16.  
  17. sendfile on;
  18. tcp_nopush on;
  19. tcp_nodelay on;
  20.  
  21. ignore_invalid_headers on;
  22.  
  23. fancyindex_exact_size off;
  24. index index.php index.html;
  25.  
  26. server
  27. {
  28. listen 80;
  29. server_name mywebsite.com
  30. root /var/www;
  31. location /
  32. {
  33. allow x.x.x.x;
  34. deny all;
  35. }
  36. location /public
  37. {
  38. allow all;
  39. fancyindex on;
  40. }
  41. location ~ \.php$
  42. {
  43. fastcgi_pass unix:/var/run/php-fpm-www.sock;
  44. include fastcgi.conf;
  45. }
  46. include security.conf;
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement