企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
简单基于域名的配置访问 主配置文件 ``` [root@Nginx-21 ~]# cat /application/nginx/conf/nginx.conf user www; worker_processes 4; 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 /etc/nginx/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"'; include /application/nginx/conf/conf.d/*.conf; } ``` 域名配置文件 ``` [root@Nginx-21 ~]# cat /application/nginx/confconf.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 main; } ```