�50 2019-06-25 08:47 采纳率: 100%
浏览 386
已结题

nginx 重定向跳转 http://xxxxx.xxx.com/aa/bbbb/cccc/dddd.htm到http://xxxxx.xxx.com/ee/

当访问 http://xxxxx.xxx.com/aa/bbbb/cccc/dddd.htm 时重定向到http://xxxxx.xxx.com/ee/
其中原nginx配置
server {
listen 80;
server_name xxxxx.xxx.com;
access_log /applogs/xxx.access.log main;
error_log /applogs/xxx.test.error.log;
root html;
index index.html index.htm;
location / {
proxy_pass http://192.168.0.1;
}
}

请写清楚配置添加到什么位置

  • 写回答

2条回答 默认 最新

  • threenewbee 2019-06-25 09:04
    关注
    location aa/bbbb/cccc/dddd.htm {
     alias ee/;
    }
    
    评论

报告相同问题?

悬赏问题

  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏