Cannot add a template through local file, works fine through remote URL #280

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

Originally created by @netagence on 1/29/2024

CloudPanel version(s) affected

2.4.1

Description

I could not add a custom VHost template following one of the "Add template" instructions at https://www.cloudpanel.io/docs/v2/cloudpanel-cli/root-user-commands/##

How to reproduce

root@monip:~/wbcpy# clpctl vhost-template:add --name='My custom app' --file='mytemplate.tpl'
gives

Vhost Template cannot be empty.

Same file at a remote URL
root@monip:~/wbcpy# clpctl vhost-template:add --name='My custom app' --file=https://mytemplocation.host/mytemplate.tpl'
gives

Vhost Template "My custom app" has been added.

Possible Solution

No response

Additional Context

No response

*Originally created by @netagence on 1/29/2024* ### CloudPanel version(s) affected 2.4.1 ### Description I could not add a custom VHost template following one of the "Add template" instructions at https://www.cloudpanel.io/docs/v2/cloudpanel-cli/root-user-commands/## ### How to reproduce `root@monip:~/wbcpy# clpctl vhost-template:add --name='My custom app' --file='mytemplate.tpl'` gives > Vhost Template cannot be empty. Same file at a remote URL `root@monip:~/wbcpy# clpctl vhost-template:add --name='My custom app' --file=https://mytemplocation.host/mytemplate.tpl'` gives > Vhost Template "My custom app" has been added. ### Possible Solution _No response_ ### Additional Context _No response_
Sign in to join this conversation.