自定义日志服务
[root@localhost ~]# cat /apps/nginx/conf/conf.d/pc.conf
server {
listen 80;
server_name www.fxq.com;
error_log /data/nginx/logs/fxq-error.log info;
access_log /data/nginx/logs/fxq-access.log main;
location / {
root /data/nginx/html/pc;
index index.html;
}
}
要打开main
生成日志
页面不存在跳转服务
直接跳转到首页
[root@localhost ~]# cat /apps/nginx/conf/conf.d/pc.conf
server {
listen 80;
server_name ww