Sub-Domains name as Domian name
#11
RE: Sub-Domains name as Domian name
Ok, I did a test on my server and was able to add shared.mach-hosting.ninja after altering the code.
Reason:
The current code only allows 3 character .TLDs for domains - This needs to be changed to 13.
OPEN:

Code:
/panel/modules/domains/code/controller.ext.php

FIND: (About line 234)

Code:
if (strlen($check) > 3) {

REPLACE WITH:

Code:
if (strlen($check) > 13) {

SAVE

I will do a pull request on GitHub if this works for you so it will be solved in the next release Smile
(Will also check the sub-domains module.)
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#12
RE: Sub-Domains name as Domian name
It works!!!
Yes, it'll be good if you check for sub-domains too.
Nice job!
Thanks.
Reply
#13
RE: Sub-Domains name as Domian name
I did a quick look and did not see a limitation in the sub-doamins (More than likely because the domain manager is what actually checks the TLD and not the sub-domains.)
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Postfix relay specific domains to mailjet johnnyp 0 3 ,011 01-29-2021, 04:44 AM
Last Post: johnnyp
Disabling warning and notice logging in /var/sentora/logs/domains/* JSmith 0 3 ,347 01-02-2021, 07:50 PM
Last Post: JSmith
Add on Domains not working but Main domain works luckyviet 2 7 ,803 03-18-2020, 07:38 PM
Last Post: AanaNahum

Forum Jump:


Users browsing this thread: 1 Guest(s)