Apache suddenly rejects localhost

Joel Hammer Joel
Mon May 17 11:48:27 PDT 2004


127.0.0.1 localhost
192.168.0.6 jhammer6.jhammer.org jhammer6
 
#===========================================================================
24.2.2.74 news
# 192.168.0.2 hammershome.com
64.303.323.99 school      

Now, curious, this computer is also a router, but I don't have its second
ip here. Doesn't seem to matter, though. I use a local DNS setup, with
the server on another machine.

If I ping school and trusted.org, I get the expected IP numbers ping'ed.
Trusted.org is in the DNS data files, not in etc/hosts.

Now, before I started having problems, my browser reported 192.168.0.6 to
the server.

Joel

On Sun, Jun 15, 2003 at 11:26:03AM -0700, Net Llama! wrote:
> What does your /etc/hosts look like?  What happens if you try to ping 
> school or trusted.org ?
> 
> On 06/15/03 11:04, Joel Hammer wrote:
> 
> > Not to my knowledge. The timestamp on /etc/hosts is apr 2002.
> > 
> > Joel
> > 
> > On Sun, Jun 15, 2003 at 10:03:58AM -0700, Net Llama! wrote:
> >> Did you change /etc/hosts ?
> >> 
> >> On 06/15/03 09:30, Joel Hammer wrote:
> >> 
> >> > I have been using apache for several, years, recently upgraded to 1.3
> >> > or whatever (the most recent version.) All has been working fine.
> >> > 
> >> > I have one password protected directory with this configuration:
> >> > 
> >> > <Location /flags>
> >> >         Order Deny,Allow
> >> >         Deny from All
> >> >         Allow from 192.168. school trusted.org
> >> >         AuthType Basic
> >> >         AuthName "Sorry-Members only"
> >> >         AuthUserFile /etc/httpd/conf/secret.users
> >> >         require valid-user
> >> > </Location> 
> >> > 
> >> > This has worked fine for several years.  Suddenly, while logging onto
> >> > this page from the local host apache is running on, I was denied access
> >> > with this error in the log:
> >> > 
> >> > [client 127.0.0.1] client denied by server configuration: /home/httpd/html/flags
> >> > 
> >> > I fixed this problem by adding localhost to the Location
> >> > configuration. But, my obvious question, why now? Nothing had changed. I
> >> > was able to log onto this page all morning but suddenly this error
> >> > popped up.
> >> > 
> >> 
> >> -- 
> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> L. Friedman                       	       netllama at linux-sxs.org
> >> Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com
> >> 
> >>   10:00am  up 14:44,  1 user,  load average: 0.00, 0.00, 0.00
> >> 
> >> _______________________________________________
> >> Linux-users mailing list
> >> Linux-users at linux-sxs.org
> >> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
> > _______________________________________________
> > Linux-users mailing list
> > Linux-users at linux-sxs.org
> > Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
> 
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> L. Friedman                       	       netllama at linux-sxs.org
> Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com
> 
>   11:25am  up 16:09,  1 user,  load average: 0.02, 0.02, 0.00
> 
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users


More information about the Linux-users mailing list