如题
想用非 80 443 端口,但是没找到在哪改
一个域名反向代理好像只能生成一个
有了 location / 后无法添加 location /xxx
如题
想用非 80 443 端口,但是没找到在哪改
一个域名反向代理好像只能生成一个
有了 location / 后无法添加 location /xxx
1
dier Feb 3, 2023
监听不同端口,配置多个`server`块就行了
server { listen 80; server_name a.domain.com; location / { root /path; } } server { listen 8443; ssl on; …… } |
2
eason1874 Feb 3, 2023
没用过这个工具,配置界面没有选项的话,你可以把其他配置好之后,再手动改 listen
http://nginx.org/en/docs/http/ngx_http_core_module.html#listen |