Failure to create a site with a dual-level subdomain #283

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

Originally created by @marat2509 on 1/26/2024

CloudPanel version(s) affected

2.4.1

Description

I can't create a site that has a two-level subdomain (..domain.com). I think this problem also affects the next levels of subdomains (..*.domain.com and so on).

How to reproduce

  • Click on ADD SITE
  • Select any type of site (I chose reverse-proxy)
  • In Domain Name, enter any two-level subdomain, for example double.level.example.com
  • Click Create
  • See error

Possible Solution

Rewrite the username generation logic for the site account

Additional Context

Error screenshot:
image

*Originally created by @marat2509 on 1/26/2024* ### CloudPanel version(s) affected 2.4.1 ### Description I can't create a site that has a two-level subdomain (*.*.domain.com). I think this problem also affects the next levels of subdomains (*.*.*.domain.com and so on). ### How to reproduce - Click on ADD SITE - Select any type of site (I chose reverse-proxy) - In Domain Name, enter any two-level subdomain, for example double.level.example.com - Click Create - See error ### Possible Solution Rewrite the username generation logic for the site account ### Additional Context Error screenshot: ![image](https://github.com/cloudpanel-io/cloudpanel-ce/assets/93652988/96f83eea-b0a6-4a3d-8378-463dd69c5611)
Sign in to join this conversation.