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

Pagoda panel allows HTTP requests to automatically jump to HTTPS

藏色散人
Release: 2020-11-23 15:15:06
forward
6215 people have browsed it

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;
}
Copy after login

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!

Related labels:
source:bt.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