pelican config

FindHao 1月前 48

访问地址没有html


To fix this, open /etc/nginx/sites-available/yoursite, and find:

location / {
    try_files $uri $uri/ =404;}

Change it to the following - note I've added $uri.htm and $uri.html, to inform Nginx that it should try appending .htm or .html onto the end of a uri if it can't find the page:

location / {
    try_files $uri.htm $uri.html $uri $uri/ =404;
    }


https://www.ericlight.com/tidying-up-pelicans-urls-with-the-flex-theme.html

最新回复 (0)
全部楼主
返回