|
Related Topics:
| what's the .htaccess directive to deny all except localhos.. - I want to put an .htaccess file in the directory of my code library directory to deny access except to those scripts on localhost needing to acces them. Thanks for any help.
localhost - Hello, I have loaded Apache 2.0 on XP. files look ok but when I go to the page is not found. Again, I have checked all of the entries in HTTP.conf and looks OK. Could it be browser settings ? Thank you for..
no localhost - Hi- XAMPP worked like a dream for me for a long time, but now suddenly it's not. Well, actually it seems to be running, but trying to load a page just hangs forever, as does hitting the ADMIN button from the XAMPP control panel. I..
how to only allow access for localhost - Hi, Is it possible to set up Apache to only allow localhost access to my web files so no one else can gain access? Reason is I am some web pages but my computer is always online so I dont want anyone being able to find a web site here when..
localhost wont run - hi all, have a great problem with testing apache2 I use a regularly XP-Home A Firewall is running. The XP's own Internet Firewall is active as well. After i edit the file hosts and added and tried..
|
|
|
Next: Professional Ecommerce Solutions by BIZynet
|
| Author |
Message |
External

Since: Feb 16, 2008 Posts: 1
|
(Msg. 1) Posted: Sat Feb 16, 2008 11:05 am
Post subject: "deny all,allow localhost" denies localhost too Imported from groups: alt>apache>configuration (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 2) Posted: Sat Feb 16, 2008 3:04 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 16, 2008 Posts: 3
|
(Msg. 3) Posted: Sat Feb 16, 2008 3:04 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2008 Posts: 9
|
(Msg. 4) Posted: Sat Feb 16, 2008 3:04 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Confused by Apache schreef:
> I have a copy of 1.3 running under W2K as a tame server for dev
> purposes. So I don't want it serving files to anyone but me. In
> the permits, I have
>
> <Directory path/to/docroot >
> Order deny,allow
> Deny from all
> Allow from 127.0.0.1
> </Directory>
>
> According to everything I can find, this should work. But it
> doesn't - it locks me out too. What am I not understanding here?
> Thanks in advance.
i think you should replace 127.0.0.1 with the addres of your local
system (i.e. 192.168.1.0/24)
--
Luuk >> Stay informed about: "deny all,allow localhost" denies localhost too |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2007 Posts: 66
|
(Msg. 5) Posted: Sat Feb 16, 2008 3:04 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Baffled by Apache" <scratching.head.DeleteThis@example.com> wrote in message
news:dr6er317nk0l7opsq2pd22r6sqqbkh6dac@4ax.com...
> On Sat, 16 Feb 2008 16:59:12 +0100,
> Davide Bianchi <davideyeahsure.DeleteThis@onlyforfun.net> wrote:
>
>>On 2008-02-16, Confused by Apache <scratching.head.DeleteThis@example.com> wrote:
>>><Directory path/to/docroot >
>>> Order deny,allow
>>> Deny from all
>>> Allow from 127.0.0.1
>>></Directory>
>>>
>>> According to everything I can find, this should work. But it
>>> doesn't - it locks me out too. What am I not understanding here?
>>
>>I think that something is preventing the 'allow' directive
>>to function correctly, check the error_log for the real error.
>>
>>Davide
>
> Thanks for the reply.
>
> Unfortunately, the log only says "client denied by server
> configuration" which doesn't seem to leave me any the wiser.
Does the user apache is running as have access to path/to/docroot/ ?
(Change your config to a simple allow from all - do you still get access
denied?) >> Stay informed about: "deny all,allow localhost" denies localhost too |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2007 Posts: 25
|
(Msg. 6) Posted: Sun Feb 17, 2008 3:21 am
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Luuk" <Luuk.TakeThisOut@invalid.lan> wrote in message
news:9jmj85-n2l.ln1@leafnode.a62-251-88-195.adsl.xs4all.nl...
> Confused by Apache schreef:
> > I have a copy of 1.3 running under W2K as a tame server for dev
> > purposes. So I don't want it serving files to anyone but me. In
> > the permits, I have
> >
> > <Directory path/to/docroot >
> > Order deny,allow
> > Deny from all
> > Allow from 127.0.0.1
> > </Directory>
> >
> > According to everything I can find, this should work. But it
> > doesn't - it locks me out too. What am I not understanding here?
> > Thanks in advance.
>
> i think you should replace 127.0.0.1 with the addres of your local
> system (i.e. 192.168.1.0/24)
He should ADD the address of his local system in another allow directive,
not replace the loopback IP in the one that's there. >> Stay informed about: "deny all,allow localhost" denies localhost too |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 7) Posted: Sun Feb 17, 2008 8:04 am
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 8) Posted: Sun Feb 17, 2008 8:04 am
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 16, 2008 Posts: 3
|
(Msg. 9) Posted: Sun Feb 17, 2008 8:04 am
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Feb 16, 2008 Posts: 3
|
(Msg. 10) Posted: Sun Feb 17, 2008 8:04 am
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Oct 25, 2006 Posts: 78
|
(Msg. 11) Posted: Sun Feb 17, 2008 12:05 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 12) Posted: Sun Feb 17, 2008 12:05 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2007 Posts: 66
|
(Msg. 13) Posted: Sun Feb 17, 2008 12:05 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Baffled by Apache" <scratching.head DeleteThis @example.com> wrote in message
news:0d8gr3d6jnmj16ll0kcsrkd21rjv3c1tjk@4ax.com...
> On Sun, 17 Feb 2008 03:21:00 -0800,
> "D. Stussy" <spam DeleteThis @bde-arc.ampr.org> wrote:
>
>>"Luuk" <Luuk DeleteThis @invalid.lan> wrote in message
>>news:9jmj85-n2l.ln1@leafnode.a62-251-88-195.adsl.xs4all.nl...
>>> Confused by Apache schreef:
>>> > I have a copy of 1.3 running under W2K as a tame server for dev
>>> > purposes. So I don't want it serving files to anyone but me. In
>>> > the permits, I have
>>> >
>>> > <Directory path/to/docroot >
>>> > Order deny,allow
>>> > Deny from all
>>> > Allow from 127.0.0.1
>>> > </Directory>
>>> >
>>> > According to everything I can find, this should work. But it
>>> > doesn't - it locks me out too. What am I not understanding here?
>>> > Thanks in advance.
>>>
>>> i think you should replace 127.0.0.1 with the addres of your local
>>> system (i.e. 192.168.1.0/24)
>>
>>He should ADD the address of his local system in another allow directive,
>>not replace the loopback IP in the one that's there.
>>
>
> I currently have (nominally) 3 addresses: the loopback, the
> 192.168.0.2 address on the local lan, and a DHCP address from the
> ISP. I have the first 2 listed in the allow directive, but I'd
> go mad if I had to re-edit httpd.conf to include the latest DHCP
> address every time I bring the system up.
The interface used as a source to access the server *should* relate to the
address you are using...
If you are using http://localhost/ or http://127.0.0.1/ then you should use
the loopback interface and your source address will be 127.0.0.1 - I'm
guessing this is not what you are doing as your configuration did not let
you in.
So, what URL are you using and which interface does it relate to?
if you are using http://192.168.0.2/ or an address that resolves to that IP
address then you will be using 192.168.0.2 as your source address and this
is the address you'd need to put in your 'allow from' line. >> Stay informed about: "deny all,allow localhost" denies localhost too |
|
| Back to top |
|
 |  |
|
Muttering suspiciously ab
|
External

Since: Feb 19, 2008 Posts: 1
|
(Msg. 14) Posted: Tue Feb 19, 2008 12:54 pm
Post subject: Re: "deny all,allow localhost" denies localhost too [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
|