Home > Operation and Maintenance > Linux Operation and Maintenance > How does the ECS server enable OSS to support HTTPS?

How does the ECS server enable OSS to support HTTPS?

坏嘻嘻
Release: 2018-09-28 17:01:01
Original
2440 people have browsed it

The content of this article is about how the ECS server allows OSS to support HTTPS. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

How does the ECS server enable OSS to support HTTPS

The ECS server enables OSS to support HTTPS. The operation is as follows:

1. Assume that the domain name www.example.com needs to be bound to the OSS Bucket.

How does the ECS server enable OSS to support HTTPS?

2. Configure a reverse proxy on an ECS instance. The domain name is also applicable to www.example.com

Reverse proxy configuration can refer to the following example:

nginx server segment:

  server {
  listen       80 ; 
  server_name  www.example.com;
  location / {
  root /alidata/www/ www.example.com/;
  #如果主机与Bucket不在同一个区域,就得使用外网了的
  proxy_pass http://aialiyun.oss-cn-hangzhou-internal.aliyuncs.com/;
  }
  }
Copy after login

3. Point the A record of the www.example.com domain name to the ECS instance. on the public network address.

4. After testing that the reverse proxy can work normally, add SSL-related certificates and configurations for the domain name on the ECS instance.

If the problem cannot be solved, please contact after-sales technical support.

The above is the detailed content of How does the ECS server enable OSS to support HTTPS?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template