[Resolved] for help, centos6nginxupstream cannot be forwarded to my own internal Port

Source: Internet
Author: User
The cause is selinux. after The selinux is disabled in etcselinuxconfig, I have restarted and created a redmine. on the host machine, I can access 192.168.33.55: 3000 through a browser, and I can also access my own 192.168.33.55: 3000 so I started to modify nginx forwarding 808...The cause is the selinux problem. after The selinux is disabled in/etc/selinux/config, restart the system.
  • I created a redmine, and my host can access 192.168.33.55: 3000 through a browser.

  • The virtual machine can also access its own 192.168.33.55: 3000

  • So I started to modify nginx to forward port 8080 to the virtual machine.

  • However, after nginx is restarted, I access 8080 and receive the 502 error.

  • However, if I forward 8080 to nginx, the default 80 is acceptable.

Why can't I forward data to port 3000? Help

Reply content:The cause is the selinux problem. after The selinux is disabled in/etc/selinux/config, restart the system.
  • I created a redmine, and my host can access 192.168.33.55: 3000 through a browser.

  • The virtual machine can also access its own 192.168.33.55: 3000

  • So I started to modify nginx to forward port 8080 to the virtual machine.

  • However, after nginx is restarted, I access 8080 and receive the 502 error.

  • However, if I forward 8080 to nginx, the default 80 is acceptable.

Why can't I forward data to port 3000? Help

I guess you usecurlAccess: 3000 is usedrootAnd your nginx access: 3000 may not be the root account. When viewing the tcp connection from the logpermission deniedSome of the information on the Internet isSELinuxConfiguration problems. Follow these steps to troubleshoot the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.