server {
listen 端口号;
server_name localhost;
location /二级目录名{
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass url;//要跳转的url链接
}
}
nginx二级目录配置
最新推荐文章于 2024-07-04 10:29:00 发布