In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "the method of separating the front and rear end to configure Https". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
01
Apply for Aliyun's ssl
Ssl certificate on Aliyun, and then apply for it. After you apply, you can put it under nginx/conf/cert.
02
Configure nginx
Configure ssl in nginx.conf according to the documentation given by Aliyun
03
Give rise to problem one
When the configuration is complete, you must pay attention to one thing here, and that is the security group problem of the server. Otherwise it will be impossible to access (and then start a messy operation). Add port 443 to the security group
04
Question 2 access to the front end
At this time, when I visited, I found that I went directly to the welcome page of nginx, without mercy, I didn't go to the port we were listening to. At this point, configure the front-end portal directly under the server that configures ssl. That is, the following configuration
After the above configuration, you can directly access our front-end home page. Finally completed the interview at the front desk.
05
Question 3: background access, picture loading, style loading
With the foreground access experience, these problems are well solved, one is the api address, picture address, style address, background address, all reverse proxy to the background port. At this time, we solved it backstage.
06
Two profiles
This is the end of the content of "how to separate the front and back end to configure Https". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.