Home >Topics >Pagoda Panel >Pagoda panel allows HTTP requests to automatically jump to HTTPS

Pagoda panel allows HTTP requests to automatically jump to HTTPS

藏色散人
藏色散人forward
2020-11-23 15:15:066213browse

The following tutorial column of Pagoda Panel will introduce to you the method of making HTTP requests automatically jump to HTTPS. I hope it will be helpful to friends in need!

Pagoda panel allows HTTP requests to automatically jump to HTTPS

How to make HTTP requests automatically jump to HTTPS

For users before version 2.5.3, if you need to set up SSL HTTP automatically jumps to HTTPS, please set it up as follows:

As shown:

Pagoda panel allows HTTP requests to automatically jump to HTTPS

Please add the following code to the site configuration file, location As shown above:

if ($server_port !~ 443){
       rewrite ^/.*$ https://$host$uri;
}

The above is the detailed content of Pagoda panel allows HTTP requests to automatically jump to HTTPS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:bt.cn. If there is any infringement, please contact admin@php.cn delete