Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes 2;
- timer_resolution 100ms;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events {
- worker_connections 2048;
- use epoll;
- multi_accept on;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- access_log off;
- sendfile on;
- tcp_nopush on;
- keepalive_timeout 0;
- #gzip on;
- server {
- listen ...:80;
- server_name ...;
- root /usr/local/nginx/html;
- #charset koi8-r;
- #access_log logs/host.access.log main;
- client_max_body_size 64m;
- # redirect server error pages to the static page /50x.html
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- location ~* \.(sql|py)$ {
- deny all;
- access_log off;
- log_not_found off;
- }
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- location / {
- index index.php;
- location ~* \.php$ {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- # fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_pass 127.0.0.1:9000;
- }
- }
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment