Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \etc\nginx\nginx.conf :
- user www-data;
- worker_processes 4;
- pid /run/nginx.pid;
- events {
- worker_connections 768;
- # multi_accept on;
- }
- http {
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- gzip on;
- gzip_disable "msie6";
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- \etc\nginx\sites-available\default :
- server {
- listen 80 default_server;
- root /usr/share/zabbix1;
- index index.php index.html;
- server_name default;
- location / {
- try_files $uri $uri/ =404;
- }
- error_page 404 /404.html;
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:9000;
- # fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement