- 积分
- 43
- 威望
-
- 金钱
-
- 注册时间
- 2010-12-17
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
我搜索了论坛,没有找到可以解决问题的答案.我用的1.5版本,加了301跳转代码后,网站打不开了,请军哥指正:以下红色字体,对不?
server
{
listen 80;
#listen [::]:80;
server_name www.tanghui.org tanghui.org;
RewriteCond %{HTTP_HOST} ^tanghui.org$ [NC]
RewriteRule ^(.*)$ http://www.tanghui.org/$1 [L,R=301]
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/default;
include rewrite/wordpress.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log off;
} |
|