Get the App
SLTechnology News&Howtos  ›  Servers  › 

Does CVM support pseudo-static?

Shulou Source: shulou.com Published: 2022-06-02 02:06:08 10月07日 Update

This article will explain in detail whether the cloud virtual host supports pseudo-static, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Yes, most of the CVM on the market support pseudo-static settings. However, if you set up the pseudo-static setting of the website separately in Baidu Cloud Market, it costs money. As you all know. Pseudo-static is good for inclusion, let's take a look at Baidu Cloud's website space how to configure pseudo-static.

1. Create a "bcloud_nginx_user.conf" file with the text tool. It is best to use UTF-8 coding and fill in pseudo-static rules. (pseudo-static rules for mainstream programs such as Wordpress and Discuz can be searched by Baidu)

two。 In the control panel of the virtual host, reload the service. After the service is loaded, the pseudo-static rules take effect, and the pseudo-static page is normal after visiting the pseudo-static page.

WordPress pseudo-static rule

Location / {if (- f $request_filename/index.html) {rewrite (. *) $1/index.html break;} if (- f $request_filename/index.php) {rewrite (. *) $1 request_filename index.php;} if (!-f $request_filename) {rewrite (. *) / index.php;}

DEDECMS pseudo-static

Rewrite "^ / index.html$" / index.php last;rewrite "^ / list- ([0-9] +)\ .html $" / plus/list.php?tid=$1 last;rewrite "^ / list- ([0-9] +)-([0-9] +)-([0-9] +)\ .html $" / plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;rewrite "^ / view- ([0-9] +)-1\ .html $" / plus/view.php?arcID=$1 last Rewrite "^ / view- ([0-9] +)-([0-9] +)\ .html $" / plus/view.php?aid=$1&pageno=$2 last;rewrite "^ / tags.html$" / tags.php last;rewrite "^ / tag- ([0-9] +)-([0-9] +)\ .html $" / tags.php?/$1/$2/ last

On the cloud virtual host support pseudo-static share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Static hosting virtual hosting support rules content articles more knowledge articles websites services good mainstream tools market market files text best Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Microsoft macOS vpn MariaDB