Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nobody;
- worker_processes 4;
- worker_rlimit_nofile 8192;
- events
- {
- worker_connections 4096;
- }
- error_log /opt/nginx/logs/error.log;
- http
- {
- include mime.types;
- default_type text/plain;
- log_format asdf '$host $remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" $upstream_response_time';
- access_log /opt/nginx/logs/access.log asdf;
- sendfile on;
- keepalive_timeout 0;
- error_page 404 =404 /404.html;
- server
- {
- listen 8080 default;
- root /opt/nginx/html;
- index index.html index.htm index.php index.php5;
- location / {
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /opt/nginx/conf/fastcgi_params;
- }
- }
- location /status
- {
- stub_status on;
- allow 127.0.0.1;
- deny all;
- }
- location /~ {
- location ~ ^/~([^/]+)/(.+\.php)$ {
- include /opt/nginx/conf/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /home/$1/www/$2;
- fastcgi_pass 127.0.0.1:9000;
- }
- location ~ ^/~([^/]+)(|/.*)$ {
- alias /home/$1/www/$2;
- index index.html;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement