search

Home  >  Q&A  >  body text

Need advice on nginx path?

How to point http://xxxxx/go-store to http://xxxxx/download.html

给我你的怀抱给我你的怀抱2749 days ago431

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 17:27:23

    location /go-store {
           rewrite (.*) /download.html;
       }
    

    reply
    0
  • 黄舟

    黄舟2017-05-16 17:27:23

    Just use rewrite directly and write it in the server configuration

    rewrite ^/go-store$ /download.html last;
    

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 17:27:23

    rewrite ^/go-store$ /download.html
    

    reply
    0
  • Cancelreply