首页  >  问答  >  正文

nginx如何重写或跳转8000端口到443

例如把:

test.domain.com:8000/event/123

跳转到:

https://test.domain.com/event/123
高洛峰高洛峰2713 天前484

全部回复(2)我来回复

  • 黄舟

    黄舟2017-05-16 17:25:53

    在你8000的server配置里加上下面代码就行

    rewrite ^/event/123 https://test.domain.com/event/123 permanent;
    

    回复
    0
  • 某草草

    某草草2017-05-16 17:25:53

    雷雷

    回复
    0
  • 取消回复