ngxin配置301跳转但某个目录不跳转如何设置
Rengxin配置301跳转但某个目录不跳转如何设置
没人帮忙
-------------------------
Re回2楼dongshan8的帖子
就是不会写,能帮忙写下吗?让所有访问到这个主机的域名都301到abcd.cn 除了下面两个目录
http://www.abcd.com/a/
http://www.abcd.com/b/
server { listen 80; server_name abcd.com www.abcd.com www.abcd.cn abcd.cn; index index.html index.htm default.php index.php; error_page 404 = /404.html; root /b/www/abcd.com/wwwroot; location ~ .*\.(php|php5)?$ { 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; } access_log /alidata/log/nginx/access/abcd.com.log;}
赞0
踩0