Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.96 KB | None | 0 0
  1. \etc\nginx\nginx.conf :
  2.  
  3. user www-data;
  4. worker_processes 4;
  5. pid /run/nginx.pid;
  6.  
  7. events {
  8.     worker_connections 768;
  9.     # multi_accept on;
  10. }
  11.  
  12. http {
  13.     sendfile on;
  14.     tcp_nopush on;
  15.     tcp_nodelay on;
  16.     keepalive_timeout 65;
  17.     types_hash_max_size 2048;
  18.     include /etc/nginx/mime.types;
  19.     default_type application/octet-stream;
  20.  
  21.     access_log /var/log/nginx/access.log;
  22.     error_log /var/log/nginx/error.log;
  23.  
  24.     gzip on;
  25.     gzip_disable "msie6";
  26.  
  27.     include /etc/nginx/conf.d/*.conf;
  28.     include /etc/nginx/sites-enabled/*;
  29. }
  30.  
  31. \etc\nginx\sites-available\default :
  32.  
  33. server {
  34.     listen 80 default_server;
  35.     root /usr/share/zabbix1;
  36.     index index.php index.html;
  37.     server_name default;
  38.  
  39.     location / {
  40.         try_files $uri $uri/ =404;
  41.     }
  42.  
  43.     error_page 404 /404.html;
  44.  
  45.     location ~ \.php$ {
  46.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  47.         fastcgi_pass 127.0.0.1:9000;
  48. #       fastcgi_pass unix:/var/run/php5-fpm.sock;
  49.         fastcgi_index index.php;
  50.         include fastcgi_params;
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement