DDCODE

Share programming skills from Magic Oriental

upArrow

The nginx reverse proxy also displays the port, how to solve?

 May 12, 2019   docker, question

Nginx is a mirror image on doc, and blog.conf under conf.d is configured as follows

clipboard.png
However, the browser still displays the words 8080 port when accessing

clipboard.png

You need to add one

proxy_set_header X-Forwarded-Host $host;

Related Posts:

  • How does Nginx reverse proxy multiple ports to…
  • What is the difference between nginx reverse proxy…
  • Nginx responded to 200 after reverse proxy but did…
  • How does nginx reverse proxy to node?
  • Deploy the website written by go with Nginx reverse proxy.
  • Nginx as reverse proxy go as server cannot read static files
  • Go program deployment doubt, do you need to add…
  • After docker deploys nginx reverse proxy wordpress,…
  • When connecting nodejs with Apache reverse proxy,…
<< All images of docker’s latest pull (built by vm) cannot be started. Nginx encountered an error log after docker started the container >>

Related Posts:

  • How does Nginx reverse proxy multiple ports to…
  • What is the difference between nginx reverse proxy…
  • Nginx responded to 200 after reverse proxy but did…
  • How does nginx reverse proxy to node?
  • Deploy the website written by go with Nginx reverse proxy.
  • Nginx as reverse proxy go as server cannot read static files
  • Go program deployment doubt, do you need to add…
  • After docker deploys nginx reverse proxy wordpress,…
  • When connecting nodejs with Apache reverse proxy,…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme