Technology Sharing

Baota Panel Nginx's https301 jump to http

2024-07-08

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Baota panel Nginx's https301 jump to http:

Log in to the Pagoda Panel: enter your Pagoda Panel management interface.

Select Website Management: In the left menu, click "Websites" and then select the website you need to redirect.

Configure website settings: In the management interface of the selected website, click the "Settings" button.

Edit the configuration file: In the pop-up settings window, find and click the "Configuration File" option.

Add redirection rules: Add the following content to the configuration file, pay attention to add

server {
listen 80
}

Outside

server {
    listen 80;
    server_name www.baidu.com baidu.com;

    # 原有的配置内容...
}

server {
    listen 443;
    server_name www.baidu.com baidu.com;

    return 301 http://$host$request_uri;
}