登錄 注冊 發(fā)新帖 |
sonsoo
|
阿里云下把偽靜態(tài)規(guī)則加入哪兒?例:
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; } #偽靜態(tài)規(guī)則 include /alidata/server/nginx/conf/rewrite/default.conf; access_log /alidata/log/nginx/access/zhuang.log; } 這樣的要把規(guī)則放在哪兒才對?
#1樓
|
|
發(fā)帖時間:2014-3-21 |
查看數(shù):0 |
回復(fù)數(shù):2
|
bjwindy
|
你只需要確認使用的是appache 、iis或者nginx,在后臺鏈接設(shè)置里面設(shè)置偽靜態(tài)后都有對應(yīng)的偽靜態(tài)規(guī)則,按照提示操作即可。
2014-3-28
#2樓
|
bychris
|
放到站點根目錄就可以了。
2015-11-30
#3樓
|
游客組
|
|