Forum

Domain name lenght?

Sjir Bagmeijer
1 September 2015, 11:54
Not sure if this is a bug but I cannot get long domain names to work.

Example: tttttttttttttttt.wordpress-aaa.bbb.se.qqq.pppppppp.net
Had to randomize the domain not sure if they like i post the real one I hope you understand, but the lenght is like that exactly-
I work fine in Nginx and Apache but in Hiawatha I get this error:

Syntax error in /etc/hiawatha/sites-enabled/wordpress-lll.conf on line 10.

If I remove the large domains it works fine, I am not sure maybe it is not supposed to support this?

the reason for the large domains is that we do imports from production to stage and those domains get automatically generated based on the production domain, so not sure if I can move this setup to Hiawatha.



Hugo Leisink
1 September 2015, 12:02
Hiawatha has no restriction for the length of the hostname. So, there must be another cause. Can you send example hostnames to me by e-mail?
Sjir Bagmeijer
1 September 2015, 13:21
Thanks for the response to my email I resolved it with adding two hostname lines.

So just for anyone else looking at this in future max length of one "Hostname =" line is 1024 but you can add it multiple times:

Hostname = *.abcd.net
Hostname = *.efgh.net

Thanks Hugo for the quick reply!
This topic has been closed.