nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'$http_user_agent $http_x_forwarded_for $request_time $upstream_response_time $upstream_addr $upstream_status';
access_log logs/access.log main;
include /usr/local/nginx/conf.d/*.conf;
}
xxx.conf
server{
server_name ***.com.cn;
location / {
proxy_pass http://127.0.0.1:8097;
}
listen 80;
access_log logs/access.log main;
}
踩坑记录