-
运维服务篇:Nginx常用功能(rewrite重定向/location定位等)
一、反向代理1、多域名跳转(location)server www.test.comlocation / {proxy_pass http://192.168.100.100:8080/web/}location /admin {proxy_pass http://192.168.100.200:8 2025-04-20 00:55:25 -
Nginx实现基于域名的企业PC与移动站点、Location基本使用
配置PC站点:在Nginx的网站配置文件中,添加以下配置:server { listen 80; server_name www.example.com; location / { root /var/www/pc; index index. 2025-04-14 01:09:21