View previous topic :: View next topic |
Author |
Message |
theosib Apprentice

Joined: 09 Mar 2004 Posts: 207
|
Posted: Tue Aug 16, 2011 8:30 pm Post subject: Cannot get Avahi to work with Apache |
|
|
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 |
|
 |
BradN Advocate


Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Tue Aug 16, 2011 9:55 pm Post subject: |
|
|
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 |
|
 |
theosib Apprentice

Joined: 09 Mar 2004 Posts: 207
|
Posted: Tue Aug 16, 2011 10:10 pm Post subject: strace -v |
|
|
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 |
|
 |
|