user root;
worker_processes 1;
worker_cpu_affinity 0101;
master_process off;
worker_priority 10;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
worker_rlimit_nofile 8192;
events {
worker_connections 512;
}
http {
include /etc/nginx/mime.types;
include /etc/nginx/fastcgi.conf;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
client_max_body_size 100M;
server {
listen 80;
server_name M-C^cM-B^cM-C^bM-B^pM-C^cM-B^bM-C^bM-B^|M-C^cM-B^cM-C^bM-B^pM-C^cM-B^bM-C^bM-BM-5M-C^cM-B^cM-C^bM-B^pM-C^cM-B^bM-C^bM-BM-3M-C^c$
access_log /var/log/nginx/access.log main;
location / {
root /var/www;
index index.html index.htm index.php;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location /50x.html {
root /var/www;
}
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
try_files $script_name = 404;
include /etc/nginx/fastcgi.conf;
fastcgi_param PATH_INFO $path_info;
fastcgi_pass 127.0.0.1:9000;
}
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
root /var/www;
expires 10d;
https://forum.ubuntu.ru/Themes/ubuntu-portal/images/bbc/spoiler.gif }
}
}
}