nginx 前端小图标配置
cat /etc/nginx/conf.d/tg-t1.conf
server {
listen 8099;
server_name localhost;
location / {
root /opt/nginx/tg-t1;
index index.htm index.html;
}
}
配置文件:
图标:images/favicon.ico
前端页面:index.html
[root@tg01 tg-t1]# cat index.html
<html>
<head>
<link rel="Shortcut Icon" href="images/favicon.ico" >
<link rel="Bookmark" href="images/favicon.ico" >
<title> TG-T1 </title>
</head>
<body>
TG-T1 test
</body>
</ht