如果还需要80端口来监听另外一个域名,则可以直接把server_name改成你要访问的域名即可。 代码语言:javascript 复制 server{listen80;server_name doc.missbe.cn;root/usr/share/nginx/html;# Load configuration filesforthedefaultserver block.location/{proxy_redirect off;proxy_set_header Host $host;proxy_set_...
server_name wiki.xxx.com; root /data/webapps/sc; location / { access_log logs/static.log main; error_log logs/static.error.log notice; if ( !-f $request_filename ) { proxy_pass http://flask5001; break; } } } server { listen 80; server_name www.xxxx.com; root /data/webapps/...
# server_name _;# root /usr/share/nginx/html;# # ssl_certificate "/etc/pki/nginx/server.crt";# ssl_certificate_key "/etc/pki/nginx/private/server.key";# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 10m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;# #...
配置Tomcat监听80端口目录概要 vim /usr/local/tomcat/conf/server.xml Connector port="8080" protocol=...