Michael G Schwern wrote:
On Fri, Aug 12, 2005 at 07:22:34PM -0700, Stas Bekman wrote:

Replacing "Allow from localhost" with "Allow from All" did it.

Why the localhost setting doesn't work?


Dunno.  localhost looks ok from my end.

$ host localhost
localhost has address 127.0.0.1
$ hostname
windhund.schwern.org


What localhost gets resolved to and what your client is seen as on the server side (warn $r->connection->remote_ip), Michael?


Where do I put that code?

e.g. inside a handler t/response/TestAPI/access2.pm

Index: t/response/TestAPI/access2.pm
===================================================================
--- t/response/TestAPI/access2.pm       (revision 225490)
+++ t/response/TestAPI/access2.pm       (working copy)
@@ -47,6 +47,10 @@

     die '$r->some_auth_required failed' unless $r->some_auth_required;

+    use Apache2::RequestRec ();
+    use Apache2::Connection ();
+    warn "myip: ", $r->connection->remote_ip, "\n";
+
     my $satisfies = $r->satisfies;
die "wanted satisfies=" . Apache2::Const::SATISFY_ALL . ", got $satisfies"
         unless $r->satisfies() == Apache2::Const::SATISFY_ALL;


--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to