Http POST drops port in URL

后端 未结 5 1967
遥遥无期
遥遥无期 2021-02-02 11:53

I have a webapp built with Django. I\'m currently running it off a laptop at home behind a router.

I have the router configured to route all traffic sent to a specific

5条回答
  •  春和景丽
    2021-02-02 11:56

    I have the same problem with my development server. After some internet search I've found this discussion (nginx, apache, and odd admin error) where the solution is to modify the proxy configuration of nginx.

    The configuration setting to modify is:

    proxy_set_header            Host $host;
    

    the solution is to add the port number:

    proxy_set_header            Host $host:$server_port;
    

    In my ngnix + apache2 (with worker mpm) + django now all works well.

提交回复
热议问题