<p dir="ltr"><br>
Den 20 mar 2014 08:53 skrev "alberto fuentes" <<a href="mailto:pajaro@gmail.com">pajaro@gmail.com</a>>:<br>
><br>
> On Mon, Mar 17, 2014 at 11:06 PM, Petter Reinholdtsen <<a href="mailto:pere@hungry.com">pere@hungry.com</a>> wrote:<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>
> My guess is that this is work in progress... i figured out the way to<br>
> access looking at the apache conf</p>
<p dir="ltr">Read about virtual servers in apache. It is the expected behaviour. You need to access the web site with name and not with ip address. </p>
<p dir="ltr">> My other guess is that patches homogenizing apache conf are welcome :></p>
<p dir="ltr">It should be a virtual web site enabled by the command a2ensite. Search and look how it is done in Debian. </p>
<p dir="ltr">You need to add a file for each virtual site in /e/a/available-sites for each virtual site. And then enable it with the command above. </p>
<p dir="ltr">/Anders </p>