View previous topic :: View next topic |
Author |
Message |
happysmash27 Apprentice
Joined: 28 Mar 2016 Posts: 220
|
Posted: Mon Mar 28, 2016 10:48 pm Post subject: Fix Apache hostname error with spaces in hostname? |
|
|
Hello! I have the following error in Apache:
[Mon Mar 28 22:09:29.305983 2016] [unique_id:alert] [pid 23280] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "Ascended Gentoo-Pig"
AH00016: Configuration Failed
It was fixed by commenting out "LoadModule unique_id_module modules/mod_unique_id.so" but this is neither ideal nor recommended in the official troubleshooting guide. Rather, it recommends adding the hostname to /etc/hosts. According to /bin/hostname, however, my hostname (Ascended Gentoo-Pig) contains spaces, which isn't allowed in /etc/hosts. Is there any way to add this hostname so it works with unique_id_module without crashes? Thanks |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Mar 29, 2016 3:09 am Post subject: Re: Fix Apache hostname error with spaces in hostname? |
|
|
happysmash27 wrote: | [...] however, my hostname (Ascended Gentoo-Pig) contains spaces, which isn't allowed in /etc/hosts. Is there any way to add this hostname so it works with unique_id_module without crashes? |
happysmash27 ... see restrictions on valid host names, specifically the paragraph ending "[n]o other symbols, punctuation characters, or white space are permitted."
best ... khay |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|