<p dir="ltr"><br>
Den 18 mar 2014 19:32 skrev "Tim Retout" <<a href="mailto:tim@retout.co.uk">tim@retout.co.uk</a>>:<br>
><br>
> On 17 Mar 2014 22:06, "Petter Reinholdtsen" <<a href="mailto:pere@hungry.com">pere@hungry.com</a>> wrote:<br>
> ><br>
> ><br>
> > [Alberto Fuentes]<br>
> > > echo "fb ip" fbx >>/etc/hosts<br>
> > ><br>
> > > then navigate to fbx<br>
> ><br>
> > You are right.  This actually work.  When I visit<br>
> > http://<eth0-ip-on-freedombox/, I get the redirect to 403 Forbidden. If<br>
> > I add fbx to /etc/hosts on my local machine and then access <a href="http://fbx/">http://fbx/</a>,<br>
> > I get JWChat.<br>
> ><br>
> > This do not seem like a good idea.  I expected both URLs to work the<br>
> > same.  Is there something we could change to get that behaviour?<br>
><br>
> I've not looked into what's going on with jwchat, but I've been looking at mDNS for the last couple of days, and I think it could be really useful for avoiding modification of the user's hosts file.</p>

<p dir="ltr">I would expect this behaviour as this is probably a virtual Web server in apache (or any webbserver) configured just for jwchat. <br>
If you check http at Wikipedia you'll see that the client sends the wanted server name as parameter "host: " in the GET request to the Web server. This is used to select the right Web server.  The solution with mDns is probably the most useful one, and not only for this. </p>

<p dir="ltr">> In short:<br>
><br>
> - set up the freedombox's hostname as normal<br>
> - install avahi-daemon on it<br>
> - point your desktop system (with libnss-mdns installed) at <a href="http://fbx.local/">http://fbx.local/</a> or similar.</p>
<p dir="ltr">Yes, this is what I would do for an easy installation without the need to configure the local name server in the LAN(in the home router). The DHCP client in the freedombox should also publish its preferred name and then the LAN router usually uses that in all name resolutions in the LAN too. But if not, mDns is also used. </p>

<p dir="ltr">> Windows support needs more to get going - you can install Bonjour, which is Apache-licensed.<br>
><br>
> Tim</p>
<p dir="ltr">/Anders </p>