Advertisement
Guest User

nginx.conf

a guest
Sep 19th, 2013
116
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;
  2. worker_processes 1;
  3. error_log /var/log/nginx/error.log debug_http;
  4. pid /var/run/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  12. '$status $body_bytes_sent "$http_referer" '
  13. '"$http_user_agent" "$http_x_forwarded_for"';
  14. access_log /var/log/nginx/access.log main;
  15. sendfile on;
  16. keepalive_timeout 65;
  17. }
  18. server {
  19. listen 80;
  20. server_name mail.domain.tld;
  21. charset utf-8;
  22. access_log /var/log/nginx/access.log main;
  23. location / {
  24. root /var/www/html;
  25. index index.php index.html index.htm;
  26. }
  27. location ~ \.php$ {
  28. root /var/www/html;
  29. fastcgi_pass unix:/var/run/php5-fpm.sock;
  30. fastcgi_index index.php;
  31. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32. fastcgi_buffers 256 4k;
  33. include fastcgi_params;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement