Форум полностью переехал на nginx – php-fm

[cc]

# — test forum.sat-expert.com w php-fpm —-

 

server {

listen 188.40.73.232:80;

server_name sat-expert.com;

rewrite ^ http://forum.sat-expert.com$request_uri? permanent;

}

 

 

server {

listen 188.40.73.232:80 default_server accept_filter=httpready;

server_name forum.sat-expert.com;

access_log /var/log/sat-fpm.access.log main buffer=32k;

error_log /var/log/sat-fpm.error.log error;

root /usr/local/www/data/sat-expert.com/forums;

index index.php index.html;

 

location / {

# try_files $uri $uri/ /index.php;

try_files $uri $uri/ @vbseo;

}

 

location @vbseo {

fastcgi_pass 127.0.0.1:9000;

fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;

fastcgi_param QUERY_STRING vbseourl=$request_uri;

include fastcgi_params;

internal;

}

 

location = /inlinemod.php {

fastcgi_pass 127.0.0.1:9000;

fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;

fastcgi_param QUERY_STRING vbseourl=$request_uri;

include fastcgi_params;

}

location ^~ /forum/sitemap_ {

location ~ ^/forum/(sitemap_.*\.xml\.gz?)$ {

fastcgi_pass 127.0.0.1:9000;

fastcgi_param SCRIPT_FILENAME $document_root/vbseo_sitemap/vbseo_getsitemap.php;

fastcgi_param QUERY_STRING sitemap=$1;

include fastcgi_params_query;

}

}

 

 

location ~ \.php$ {

try_files $uri =404;

fastcgi_split_path_info ^(.+\.php)(/.+)$;

fastcgi_pass 127.0.0.1:9000;

fastcgi_param PATH_INFO $fastcgi_path_info;

fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;

include fastcgi.conf;

}

 

location ~* /(vbulletin_css|customavatars|customprofilepics|images|imagehosting|applied|sp_pic) {

root /usr/local/www/data/sat-expert.com/forums;

access_log /var/log/sat-exp.static.access.log;

# access_log off;

expires 1d;

}

 

location /vbseo/(includes|resources/html|resources/xml)/ {

allow 127.0.0.1;

deny all;

}

 

location ~ /\.ht {

deny all;

}

 

 

}#end server

 

# — end test forum.sat-expert.com w fpm

[/cc]

 

 

Оставить комментарий