[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [SLUG] Apache: why doesn't "allow from localhost work" ?



I don't think that it is an apache thing at all.
If you are using a proxy address, put as exclusions in your browser proxy
settings - 130.10.11.12 127.0.0.1  localhost

Chris

-----Original Message-----
From: Mike Lake [mailto:Mike.Lake@nospam.uts.edu.au]
Sent: Wednesday, 27 June 2001 6:16
To: slug@nospam.slug.org.au
Subject: Re: [SLUG] Apache: why doesn't "allow from localhost work" ?


On Wed, Jun 27, 2001 at 05:48:48PM +1000, Andrew Bennetts wrote:
> On Wed, Jun 27, 2001 at 05:11:24PM +1000, Mike Lake wrote:
> > # allow from localhost      # why does this not work?
> 
> Are you pointing your browser at 
>   http://localhost/blah
> or at:
>   http://mycomputername/blah

When I point it at http://localhost/~mikel I get 
"Forbidden You don't have permission to access /~mikel on this server."

AND the URL in the browser changes to:
        http://mycomputername.mydomain.edu.au/~mikel/

(That means that localhost is being resolved to mycomputer.mydomain I
gather)

When I point it at http://mycomputername/~mikel I get 
"Forbidden You don't have permission to access /~mikel on this server."

> At a guess, the first should work, and the second shouldn't. 
Nope. neither.

If I point it just to http://localhost I get:
You don't have permission to access / on this server.

If I point it to http://mycomputername I get the correct index.html file 
in /var/www

> Your browser is free to bind to any local interface it likes when it
creates
> a socket to connect to somewhere... default behaviour for sockets is to
> try pick an appropriate interface, so if you point your browser at a
> "real" IP addres, or a domain name that maps to one, it will connect
> from your internet connection's address, not your localhost one.
> I hope this helps (and I hope I'm making sense :)

Dont really follow about the binding.
I understand about mapping to an address if it can loo up an addr from a
name but not the bit about the "from" bit. 

Mike
-- 
Don't worry if you're a kleptomaniac; you can always take something for it.

Michael Lake, University of Technology, Sydney
Work: Mike.Lake@nospam.uts.edu.au Ph: 02 9514 1724 Fx: 02 9514 1628 
Home: http://www.speleonics.com.au
Linux enthusiast, active caver and interested in anything technical.
               ***************************************



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug