Wordpress page with custom .html url doesn't work

Zakopet
Posts: 9
Joined: Tue Sep 28, 2021 2:54 pm

My Wordpres site doesn't work.
I have custom post links like "/%category%/%post_id%-%postname%.html"
And posts don't work, because extension ".html"

Than i removed "htm|html"
from ngnix conf "domain.com.nginx.ssl.conf"

Replaced "location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp"
To "location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|ttf|otf|webp"

And site works well!
Zakopet
Posts: 9
Joined: Tue Sep 28, 2021 2:54 pm

But when LetsEncrypt renewed certificate Wordpress site doesn't work again.
What is path to template configs?
I can't find template config here "/usr/local/vesta/data/templates".

There are no files:
PHP-FPM-56
PHP-FPM-74
PHP-FPM-80
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

is it nginx-only variant or default setup?
Zakopet
Posts: 9
Joined: Tue Sep 28, 2021 2:54 pm

dpeca wrote: Tue Sep 28, 2021 3:23 pm is it nginx-only variant or default setup?
It is default setup.
I used this command to install Vesta:
bash vst-install-debian.sh
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Zakopet wrote: Tue Sep 28, 2021 3:21 pm But when LetsEncrypt renewed certificate Wordpress site doesn't work again.
What is path to template configs?
I can't find template config here "/usr/local/vesta/data/templates".
nginx templates are in folder /usr/local/vesta/data/templates/web/nginx/
Zakopet
Posts: 9
Joined: Tue Sep 28, 2021 2:54 pm

dpeca wrote: Tue Sep 28, 2021 6:35 pm

nginx templates are in folder /usr/local/vesta/data/templates/web/nginx/
I can't find string
"...jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp..."
in "default.tpl" and "default.stpl"

Wich config should I edit to remove string "htm|html"?
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

I'm pretty sure it's already removed in myVesta code - https://github.com/myvesta/vesta/commit ... d86928c164
Just update myVesta.
Zakopet
Posts: 9
Joined: Tue Sep 28, 2021 2:54 pm

I have latest version myVesta (0.9.8) (26-49) and myVesta auto update was enabled.
I installed myVesta 06.09.2021
Zakopet
Posts: 9
Joined: Tue Sep 28, 2021 2:54 pm

I didn't create web domains in myVesta, I restored account from backup VestaCP (not myVesta). Maybe it is because of that
Last edited by Zakopet on Wed Sep 29, 2021 8:42 am, edited 1 time in total.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Yes, it gets extension list from backup file...
Post Reply