- winok2010-08-19中级会员6197
**location / {
if ( $args ~ “mosConfig_[a-zA-Z_]{1,21}(=|\%3d)” ) {set $args “”;
rewrite ^.*$ http://$host/index.php last;
return 403;}if ( $args ~ “base64_encode.\(.\)”) {set $args “”;
rewrite ^.*$ http://$host/index.php last;
return 403;}if ( $args ~ “(\|%3E)”) {set $args “”;
rewrite ^.*$ http://$host/index.php last;
return 403;}if ( $args ~ “GLOBALS(=|\[|\%[0-9A-Z]{0,2})”) {set $args “”;
rewrite ^.*$ http://$host/index.php last;
return 403;}if ( $args ~ “_REQUEST(=|\[|\%[0-9A-Z]{0,2})”) {set $args “”;
rewrite ^.*$ http://$host/index.php last;
return 403;}if (!-e $request_filename) {
rewrite (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ /index.php last;
break;}
} **网上找到这段,并且放到joomla.conf,在nginx.conf加入了include语句。但joomla1.5开启搜索引擎友好链接后,均无法访问被优化的链接.......
我的joomla放在网站根目录tae文件夹里面