sonsoo

阿里云下把伪静态规则加入哪儿?

例:

server {

        listen       80;

        server_name  www.xxx.com xxx.com;

index index.html index.htm index.php;

root /alidata/www/zhuang;

location ~ .*\.(php|php5)?$

{

#fastcgi_pass  unix:/tmp/php-cgi.sock;

fastcgi_pass  127.0.0.1:9000;

fastcgi_index index.php;

include fastcgi.conf;

}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$

{

expires 30d;

}

location ~ .*\.(js|css)?$

{

expires 1h;

}

#伪静态规则

include /alidata/server/nginx/conf/rewrite/default.conf;

access_log  /alidata/log/nginx/access/zhuang.log;

}


这样的要把规则放在哪儿才对?

#1楼
发帖时间:2014-3-21   |   查看数:0   |   回复数:2
bjwindy
你只需要确认使用的是appache 、iis或者nginx,在后台链接设置里面设置伪静态后都有对应的伪静态规则,按照提示操作即可。
2014-3-28 #2楼
bychris
放到站点根目录就可以了。
2015-11-30 #3楼
游客组