example.com) to access Cloud Object Storage (COS) resources over HTTPS. The detailed operational instructions are as follows:https://example.com without enabling CDN acceleration. The detailed steps are as follows:https://example.com to the bucket testhttps-1250000000 and bind a certificate. For detailed instructions, see the Enable Custom Origin Domain Name document.https://example.com on your server. Refer to the following configuration for details (the following Nginx configuration is for reference only):server {listen 443;server_name example.com ;ssl on;ssl_certificate /usr/local/nginx/conf/server.crt;ssl_certificate_key /usr/local/nginx/conf/server.key;error_log logs/example.com.error_log;access_log logs/example.com.access_log;location / {root /data/www/;proxy_pass http://testhttps-1250000000.cos.ap-guangzhou.myqcloud.com; # Configures the default download domain name for the Bucket.}}
server.crt; and server.key are the HTTPS certificates for your own (custom) domain name. If your domain name does not have an HTTPS certificate, go to the Tencent Cloud SSL Certificates page to apply for one.
If you do not have a certificate for now, you can delete the following configuration information. However, an alarm will appear when you access the site. You can click Continue to proceed with the access.ssl on;ssl_certificate /usr/local/nginx/conf/server.crt;ssl_certificate_key /usr/local/nginx/conf/server.key;
example.com to the server IP address from Step 1. For detailed instructions, see Quickly Add Domain Name Resolution.proxy_set_header Host $http_host;
$http_host with the default access domain name of your bucket, for example, proxy_set_header Host testhttps-1250000000.cos.ap-guangzhou.myqcloud.com.proxy_set_header Referer www.test.com;
errorcode: -46616 will be reported. The error message indicates that the request did not hit the referer allowlist. However, you can access the custom domain name via a proxy to open the web page normally.{errorcode: -46616,errormsg: "not hit white referer, retcode:-46616"}
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários