location/{
rewrite^/archiver/((fid|tid)-[w-]+.html)$/archiver/index.php?$1last;
rewrite^/forum-([0-9]+)-([0-9]+).html$/forumdisplay.php?fid=$12last;
32last;
rewrite^/space-(username|uid)-(.+).html$/space.php?$1=$2last;
rewrite^/tag-(.+).html$/tag.php?name=$1last;
}
location/
{
autoindexoff;
set$wp_super_cache_file”;
set$wp_super_cache_uri$request_uri;
if($request_method=POST)
{
set$wp_super_cache_uri”;
}
if($query_string)
{
set$wp_super_cache_uri”;
}
if($http_cookie~*“comment_author_|WordPress|wp-postpass_”)
{
set$wp_super_cache_uri”;
}
if($wp_super_cache_uri~^(.+)$)
{
set$wp_super_cache_file/wp-content/cache/wp_super_cache/$http_host/$1index.html;
}
if(-f$document_root$wp_super_cache_file)
{
rewrite^(.*)$$wp_super_cache_filebreak;
}
if(-f$request_filename)
{
expires30d;
break;
}
if(!-e$request_filename)
{
rewrite^(.+)$/index.php?q=$1last;
}
}
location/{
if(-f$request_filename/index.html){
rewrite(.*)$1/index.htmlbreak;
}
if(-f$request_filename/index.php){
rewrite(.*)$1/index.php;
}
if(!-f$request_filename){
rewrite(.*)/index.php;
}
}
includediscuz.conf;
includewordpress.conf;
server
{
listen80;
server_namebbs.1dle.com;
indexindex.htmlindex.htmindex.php;
root/data0/htdocs/bbs;
includediscuz.conf;
error_page404=/error/404.html;
error_page502=/error/502.html;
location~.*.(php|php5)?$
{
#fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
includefcgi.conf;
}
log_formatwwwlogs‘$remote_addrC$remote_user[$time_local]“$request”‘
‘$status$body_bytes_sent“$http_referer”‘
‘”$http_user_agent”$http_x_forwarded_for’;
access_log/data1/logs/wwwlogs.logwwwlogs;
}
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |