Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot get Avahi to work with Apache
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
theosib
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 207

PostPosted: Tue Aug 16, 2011 8:30 pm    Post subject: Cannot get Avahi to work with Apache Reply with quote

I'm trying to get Avahi to advertise my Apache server on my local network.

I followed the instructions here:
http://en.gentoo-wiki.com/wiki/Avahi#Apache

However, the service does not appear. I dug through log files and found this:

[Tue Aug 16 16:23:59 2011] [error] avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name

Now, I have a hostname set up, and I have a domain name setup, and I also have told Apache that its ServerName is compute0.localdomain. Absolutely nothing I try seems to get the proper hostname through to Avahi.

Can anyone help me out here?

Thanks!
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Aug 16, 2011 9:55 pm    Post subject: Reply with quote

I would try running avahi with strace -v (suggest redirecting output to a file) and see if you can grep the resulting huge log file for localhost and find where it's getting it from (assuming localhost isn't present in any of its normal config files, as that should be easy to check first)

Edit: Actually you might have to play with the -s option to change the length of strings output, and if it results in an impossibly large file you might want to use grep with -A and -B options to print surrounding context, piped directly from strace.


Last edited by BradN on Tue Aug 16, 2011 10:17 pm; edited 2 times in total
Back to top
View user's profile Send private message
theosib
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 207

PostPosted: Tue Aug 16, 2011 10:10 pm    Post subject: strace -v Reply with quote

I tried your strace suggestion, but I see no "localhost" anywhere in avahi's output.

I think it's a problem with mod_dnssd.
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