server-help ru server listen 87 118 120 119 80 server_name server-help

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# server-help.ru
server {
listen 87.118.120.119:80;
server_name server-help.ru www.server-help.ru;
index index.php;
root /home/admin/www/vhosts/server-help.ru/httpdocs;
location ~* ^.+\.(mpg|avi|mp3|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|txt|tar|mid|midi|wav|rtf|mpeg|pdf|7z|3gp)$ {
root /home/admin/www/vhosts/server-help.ru/httpdocs;
limit_rate 2000K;
access_log off;
}
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|bmp|js|xml|swf)$ {
root /home/admin/www/vhosts/server-help.ru/httpdocs;
access_log off;
expires 30d;
}
location ~ \.php$ {
root /home/admin/www/vhosts/server-help.ru/httpdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}