Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data www-data;
- worker_processes 4;
- events {
- worker_connections 1024;
- use epoll;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] $request '
- '"$status" $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- sendfile on;
- tcp_nopush on;
- tcp_nodelay off;
- #keepalive_timeout 0;
- keepalive_timeout 5;
- gzip on;
- gzip_comp_level 2;
- gzip_proxied any;
- gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- server {
- listen 81;
- server_name tv.winelibrary.com localhost 65.125.57.202
- access_log /var/log/nginx/wltv.access.log main;
- error_log /var/log/nginx/wltv.error.log;
- location / {
- port_in_redirect off;
- root /var/www/wltv;
- index index.php index.html index.htm;
- if (-f $request_filename) {
- break;
- }
- if (-d $request_filename) {
- break;
- }
- if (!-e $request_filename) {
- rewrite ^(.+)$ /index.php?q=$1 last;
- }
- #rewrite ^(.+)$ /index.php?q=$1 last;
- # Enable nice permalinks for WordPress: (as per Yawn.it)
- #error_page 404 = //index.php?q=$uri;
- }
- location ~ \.php$ {
- # root html;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/wltv$fastcgi_script_name;
- include fastcgi_params;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- location ~ /\.ht {
- deny all;
- }
- }
- }
Add Comment
Please, Sign In to add comment