Placeholder {{server_name}} with wrong replacement #79

Closed
opened 2026-04-05 20:25:26 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Code-TT on 6/24/2025

CloudPanel version(s) affected

2.5.1

Description

When I use the placeholder {{server_name}} in the vhost editor, it gets replaced incorrectly in the config file. Instead of www, www1 is set.

server_name test.org www1.test.org;
instead of
server_name test.org www1.test.org;

How to reproduce

Replace your vhost Template with a new one with placeholder server_name.

Possible Solution

No response

Additional Context

No response

*Originally created by @Code-TT on 6/24/2025* ### CloudPanel version(s) affected 2.5.1 ### Description When I use the placeholder {{server_name}} in the vhost editor, it gets replaced incorrectly in the config file. Instead of www, www1 is set. server_name test.org www1.test.org; instead of server_name test.org www1.test.org; ### How to reproduce Replace your vhost Template with a new one with placeholder server_name. ### Possible Solution _No response_ ### Additional Context _No response_
Sign in to join this conversation.