About how to build a web server on a linux server

Source: Internet
Author: User
I have never created a server before, and now I have built a linux server. jdk1.7mysqltomcat is all ready. it is okay to publish the web during the test. port 80 is required for development. Question 1: First, I understand that port 80 is to modify the tomcat80 port (if...

I have never set up a server before. now I have set up a linux server, and jdk1.7 mysql tomcat is all ready. The web published during the test is okay. port 80 is required for development.
Question 1: First of all, I understand that port 80 is used to modify port 80 of tomcat (if you make a mistake, ask for criticism)
Problem 2: After I changed port 80 and then published it to my server, the error 502 is returned.

Please kindly advise. Thank you ~~~

Reply content:

I have never set up a server before. now I have set up a linux server, and jdk1.7 mysql tomcat is all ready. The web published during the test is okay. port 80 is required for development.
Question 1: First of all, I understand that port 80 is used to modify port 80 of tomcat (if you make a mistake, ask for criticism)
Problem 2: After I changed port 80 and then published it to my server, the error 502 is returned.

Please kindly advise. Thank you ~~~

1 Port 80 should refer to http and 443 should refer to https

The front-end listens to port 80 with nginx, and then forwards dynamic requests to tomcat. Generally, tomcat is not used to directly listen to port 80.

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.