标签:nbsp utf-8 highlight domain api charset name server list
nginx服务器部署多个网站,共用一个80端口。
如此配置 conf文件
upstream tomcatserver2 { server xx.xx.xx.111:5000; } upstream tomcatserver3 { server xx.xx.xx.111:5001; } server { listen 80; server_name admin.domain.com; charset utf-8; root /opt/www/vue/dist/; index index.html; error_page 404 = /index.html; } server { listen 80; server_name api.domain.com; #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_pass http://tomcatserver2; index index.html index.htm; } } server { listen 80; server_name apix.domain.com; #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_pass http://tomcatserver3; index index.html index.htm; } }
标签:nbsp utf-8 highlight domain api charset name server list
原文地址:https://www.cnblogs.com/langhaoabcd/p/11413973.html