Changed Servername but the 301 Redirect gets not replaced automatically

I changed domain from in my vhost config (sites-enabled) the server_name from
orderapi.mydomain.de => to orderapi2.mydomain.de

Then I run follwing command: certbot --nginx --redirect --reinstall -d orderapi2.gastroblitz.de

my certs, everything gets updated well.

THE ISSUE is, that my redirects are not updated to the NEW DOMAIN orderapi2.mydomain.de
still orderapi…

how can i force CERTBOT to update these entrys?

I woud apreciate any hint. thx a lto

You are asking certbot to fix files you are changing manually.
The simplest fix is to manually adjust the nginx file to whatever you need it to do.
NGINX is very straightforward - the “verbs” are easy to understand.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.