论坛验证码老是出错,求帮忙
回2楼玩站网的帖子
不是每次都出现啊,有的时候一两天,有的时候同个小时,我要时不时的守在电脑边上,一旦出不来,就要刷新缓存才可以,默认域名有设的,还是一样
-------------------------
Re论坛验证码老是出错,求帮忙
引用第4楼wgrid.cn于2015-05-23 21:19发表的 :
缓存问题,正常。。。
楼主重定向下,要是www没有放页面的话,那就直接在配置文件里写上定向规则
以阿里nginx为例
/alidata/server/nginx/vhosts
[code]if ($host != 'www.wgrid.cn' )
....... [url=http://bbs.aliyun.com/job.php?action=topost&tid=244600&pid=657442][/url]
谢谢兄弟先,我学着弄一下看看
-------------------------
回1楼dongshan8的帖子
没有启用防盗链,
我去试试重定向吧
-------------------------
Re论坛验证码老是出错,求帮忙
今天查了一下网站配置文件,大家帮我看一下,
server{ listen 80; erver{ listen 80; server_name jianbocn.com www.jianbocn.com; root /a/domains/jianbocn.com/public_html; index forum.php index.php; error_page 404 /404.html; #Custom rules Start rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;rewrite ^([^\.]*)/resource-view-([0-9]+)\.html$ $1/plugin.php?id=addon_download&mod=view&rid=$2 last;rewrite ^([^\.]*)/resource-cat-([0-9]+)-([0-9]+)\.html$ $1/plugin.php?id=addon_download&mod=category&catid=$2&page=$3 last;rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;if (!-e $request_filename) { return 404;} #Custom rules End location = /500.html { root /usr/share/nginx/html; } location ~ \.php$ { fastcgi_pass unix:/dev/shm/php.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; access_log /a/apps/nginx/logs/jianbocn.com.access.log main; } location ~ /\.ht { deny all; }}
会不会是这个问题呢?
server_name jianbocn.com www.jianbocn.com;
这个要怎么改哇?我直接改成 server_name www.jianbocn.com; 的话网站会很混乱,没有CSS格式之类的,
教我一下怎么弄啊
赞0
踩0