Nginx反向代理实现二级域名
Nginx反向代理
编辑:/etc/nginx/sites-enabled/default
listen [端口号]
:监听的端口,要修改为80以外的端口server_name
:改为二级域名
在/etc/nginx/conf.d/
中创建一个新的文件reverse_proxy.conf
1 |
|
Nginx反向代理实现二级域名
http://www.ming-ice-tea.top/2025/06/14/Nginx反向代理实现二级域名/
编辑:/etc/nginx/sites-enabled/default
listen [端口号]
:监听的端口,要修改为80以外的端口server_name
:改为二级域名
在/etc/nginx/conf.d/
中创建一个新的文件reverse_proxy.conf
1 |
|