企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[root@Nginx-21 ~]# cat /opt/nginx/conf/nginx.conf ``` user www; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; 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"'; log_format access_json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"responsetime":$request_time,' '"upstreamtime":"$upstream_response_time",' '"upstreamhost":"$upstream_addr",' '"http_host":"$host",' '"url":"$uri",' '"domain":"$host",' '"xff":"$http_x_forwarded_for",' '"referer":"$http_referer",' '"status":"$status"}'; include /opt/nginx/conf/conf.d/*.conf; } ``` [root@Nginx-21 ~]# cat /opt/nginx/conf/conf.d/test.vim26.com.conf ``` server { listen 80; server_name test.vim26.com; location / { root html/www; index index.html; } access_log logs/access_www.log access_json; } ```