中文字幕亚洲一区,69久久久久精品9999不卡片,亚洲国产日韩欧美在线看片,国产精品久久久久久久久岛国

龍巖易富通網絡科技有限公司

龍巖小程序開發,龍巖分銷系統

nginx下不帶www跳轉到帶www

2015.09.10 | 1365閱讀 | 0條評論 | 通用代碼

server
{
listen 80;
server_name www.co197.com 0597seo.com;
index index.php index.html index.htm;
root /home/wwwroot/0597seo.com;
include /home/wwwroot/0597seo.com/.htaccess;

if ($host != 'www.co197.com') {
rewrite ^/(.*)$ http://www.co197.com/$1 permanent;
}

location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "open_basedir=/home/wwwroot/0597seo.com/:/tmp/:/proc/";
include fastcgi.conf;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

location ~ /\.ht {
deny all;
}

}


贊 (

發表評論