Custom v2-varnish vhost templates cause a 403 page and missing Varnish settings #324

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

Originally created by @Brugman on 11/6/2023

CloudPanel version(s) affected

2.3.2

Description

Adding and using a custom v2-varnish vhost template seems to always result in a 403 webpage, and a missing Varnish tab in the CloudPanel site settings.

How to reproduce

  1. Add a custom vhost template based on a v2-varnish example, or the exact v2-varnish example itself:
clpctl vhost-template:add --name='Test' --file=https://raw.githubusercontent.com/cloudpanel-io/vhost-templates/master/v2-varnish/Generic/Generic
  1. Create a PHP site with the Test template.
  2. Visit the site and find a 403 page.
  3. Edit the site in CloudPanel and find no Varnish tab.

Possible Solution

No response

Additional Context

FYI:

  • Using the system templates (which are also based on v2-varnish) does not result in these 2 problems.
  • Adding and using a custom v2 (non-varnish) vhost template does not result in a 403. The Varnish tab is still missing, but that is to be expected.
*Originally created by @Brugman on 11/6/2023* ### CloudPanel version(s) affected 2.3.2 ### Description Adding and using a custom v2-varnish vhost template seems to always result in a 403 webpage, and a missing Varnish tab in the CloudPanel site settings. ### How to reproduce 1. Add a custom vhost template based on a v2-varnish example, or the exact v2-varnish example itself: ```sh clpctl vhost-template:add --name='Test' --file=https://raw.githubusercontent.com/cloudpanel-io/vhost-templates/master/v2-varnish/Generic/Generic ``` 2. Create a PHP site with the Test template. 3. Visit the site and find a 403 page. 4. Edit the site in CloudPanel and find no Varnish tab. ### Possible Solution _No response_ ### Additional Context FYI: - Using the system templates (which are also based on v2-varnish) does not result in these 2 problems. - Adding and using a custom v2 (non-varnish) vhost template does not result in a 403. The Varnish tab is still missing, but that is to be expected.
Sign in to join this conversation.