Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fix Apache hostname error with spaces in hostname?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
happysmash27
n00b
n00b


Joined: 28 Mar 2016
Posts: 58

PostPosted: Mon Mar 28, 2016 10:48 pm    Post subject: Fix Apache hostname error with spaces in hostname? Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Mar 29, 2016 3:09 am    Post subject: Re: Fix Apache hostname error with spaces in hostname? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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