nginx 301 跳转配置
server{
listen80;
server_namexxx.com;
indexindex.phpindex.htmlindex.shtmlindex.htm;
root/eetop/nginx/out_hibeauty;
return301http://test.com;
location/{
try_files$uri$uri//index.php?$args;
}
location~.*\.(php)?$
{
expires-1s;
try_files$uri=404;
fastcgi_split_path_info^(.+\.php)(/.+)$;
includefastcgi_params;
fastcgi_paramPATH_INFO$fastcgi_path_info;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
fastcgi_pass127.0.0.1:9000;
#fastcgi_passunix:/var/run/phpfpm.sock;
#php-fpm.conflisten=/var/run/phpfpm.sock##
}
error_page500502503504/50x.html;
location=/50x.html{
rootout_hibeauty;
}
}
相关推荐
服务器端攻城师 2020-05-04
etedyh 2020-01-02
咻咻ing 2010-11-09
lsn0LSN 2014-10-23
hwhanwan 2011-10-19
zhangpuego 2013-03-18
greatking 2013-01-05
奶牛老爹 2011-05-04
qiuqiang 2016-04-07
jingz 2011-09-09
bocaimomo 2013-08-01
leeagle 2012-12-23
ibatsiSpring 2012-08-11
xiajlxiajl 2017-03-08
清风落叶 2016-08-08
lihangorz 2018-08-09
leehbing 2019-04-20
liuchen0 2017-06-06
phptyong 2019-04-15