diff --git a/imageroot/actions/create-vhost/validate-input.json b/imageroot/actions/create-vhost/validate-input.json index 64ea8d1..967ea57 100644 --- a/imageroot/actions/create-vhost/validate-input.json +++ b/imageroot/actions/create-vhost/validate-input.json @@ -41,9 +41,10 @@ "ServerNames": { "type": "array", "items": { - "type": "string", - "format":"hostname" - }, + "type": "string", + "format": "hostname", + "pattern": "\\." + }, "title": "ServerNames", "description": "Fully qualified domain names as virtualhost." }, diff --git a/imageroot/actions/update-vhost/validate-input.json b/imageroot/actions/update-vhost/validate-input.json index ca94016..68adb93 100644 --- a/imageroot/actions/update-vhost/validate-input.json +++ b/imageroot/actions/update-vhost/validate-input.json @@ -42,7 +42,8 @@ "type": "array", "items": { "type": "string", - "format": "hostname" + "format": "hostname", + "pattern": "\\." }, "title": "ServerNames", "description": "Fully qualified domain names as virtualhost." diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json index df0c9b5..580f57d 100644 --- a/ui/public/i18n/en/translation.json +++ b/ui/public/i18n/en/translation.json @@ -77,6 +77,7 @@ "Edit_Virtualhosts":"Edit virtual host {name}", "title": "Virtual hosts", "ServerNames_format": "Domain name not allowed : {error}", + "ServerNames_pattern": "Must be a valid fully qualified domain name: {error}", "type_to_confirm": "Type {name} to confirm deletion", "delete_virtualhosts_confirm": "Delete virtual host {name}? All data will be deleted. This action is NOT reversible", "sftpgo_url": "SFTPGo WebClient",