Re: apache2 configuration question
Larry Bristol wrote:
> 127.0.0.1 is always the localhost, meaning the machine on which you are
> running. Â*On the machine running your Apache2 server, you can access the
> server through that IP address. Â*But on one of your other machines,
> 127.0.0.1 refers to THAT machine, not the one running the Apache2 server.
>
> You need to know the IP address on your LAN for the Apache2 server. Â*If it
> happens to be 192.168.1.4, for example, then you could use this IP address
> to access the server from any machine on your LAN (including the server
> itself).
>
Thanks. I had assumed that Listen 127.0.0.1:80 meant that apache would only
serve pages to a user on that machine, and that that was a way of
preventing any other machine from accessing the pages, and that to allow
any other machine to access them I had to include that machine's address,
or allow everyone by not specifying an IP.
So, do I block external access just with the firewall, and simply allow
local machines in the firewall rules, rather than doing it via apache
configuration?
- Richard
|