nginx 配置 favicon.ico

nginx.conf 配置文件

upstreamnginx_server{

server10.130.100.17:80;

server10.130.100.18:80;

server10.130.100.19:80;

server10.130.100.20:80;

server10.130.100.21:80;

server10.130.100.22:80;

}

server{

listen80;

server_name202.108.177.43202.108.177.44find.nlc.gov.cn;

indexindex.htmlindex.htmindex.jspdefault.jsp;

location~^/favicon\.ico${

root/var/www/nginx-default;

}

location^~/{

root/var/www/nginx-default;

proxy_set_headerHost$host;

proxy_set_headerX-Real-IP$remote_addr;

proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;

proxy_next_upstreamhttp_502http_504errortimeoutinvalid_header;

proxy_passhttp://nginx_server;

}

}

把该favicon.ico放在/var/www/nginx-default下即可

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native