Re: location

2007-05-02 Thread Torsten Foertsch
On Thursday 03 May 2007 02:20, Jonathan Vanasco wrote: > I'm cleaning up some code for a dispatch class I wrote, and got very > confused: > > I found that i was accessing location from $r ( ApacheRequestReq > Object ) > > location isn't a documented function of $r though. why is that > working fo

Re: Help with sending custom headers in mod_perl2

2007-05-02 Thread Victor Danilchenko
By the way, this submission of the HTTP header also seems to result in an about 20 second additional delay on the client side -- i.e. if I request an object which returns the Refresh header, I wait for about 20 seconds, then see the headers flash by as page contents, and then the refresh occur

Help with $r being corrupted

2007-05-02 Thread Victor Danilchenko
Hi all, I have a custom handler which is supposed to do some stuff with the request, and run it through the Mason parser. The trouble is that ever once in a while -- rarely -- the request object comes to my handler method corrupted. The error I usually get is that dir_config method is

Help with sending custom headers in mod_perl2

2007-05-02 Thread Victor Danilchenko
I seem to be missing something very obvious... I have: $r->header_out("Refresh"=>"0; URL=$uri\n"); $r->send_http_header; print "Test redirect => $uri\n"; But when the redirect page gets submitted, the HTTP headers show up as page contents: Keep-Alive: timeout=15, max=99 Connection: K

location

2007-05-02 Thread Jonathan Vanasco
I'm cleaning up some code for a dispatch class I wrote, and got very confused: I found that i was accessing location from $r ( ApacheRequestReq Object ) location isn't a documented function of $r though. why is that working for me ?

Re: Getting user input during apache startup

2007-05-02 Thread Robert Landrum
Krist van Besien wrote: The code works insofar that it waits 5 seconds and than proceeds with the default I set, but it completely ignores any keypresses I make. It is as if STDIN is not available at the time this code runs. If I replace the ReadKey(5) with a ReadKey(5,STDIN) I get a syntax error

RE: Getting user input during apache startup

2007-05-02 Thread John Saylor
hi -Original Message- From: Krist van Besien [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 9:35 AM [deletions] So i really would prefer to have a way to ask user input from within a section. But am I asking something that is impossible? what's impossible? perl and apache are

Re: httpd.conf problem

2007-05-02 Thread Carl Johnstone
Tyler Bird wrote: but I am also trying to allow .htaccess in sub directories AllowOverride All This is the mod_perl rather than apache mailing list :-) But are you getting confused between and for a start? It should be - checking the 2.2 docs you can only use the directive within

httpd.conf problem

2007-05-02 Thread Tyler Bird
Hi I am trying to deny .httaccess to overide directives in a top level directory / .. AllowOverride None but I am also trying to allow .htaccess in sub directories AllowOverride All This isn't working for me. It seems the / Directory is applying the AllowOverride to the

Re: Getting user input during apache startup

2007-05-02 Thread Krist van Besien
On 5/2/07, John Saylor <[EMAIL PROTECTED]> wrote: hi -Original Message- From: Krist van Besien [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 8:59 AM [deletions] I use sections quite intensively to configure my apache server. I would like to build in some user interaction durin

RE: Getting user input during apache startup

2007-05-02 Thread John Saylor
hi -Original Message- From: Krist van Besien [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 8:59 AM [deletions] I use sections quite intensively to configure my apache server. I would like to build in some user interaction during startup. The code works insofar that it waits 5

Getting user input during apache startup

2007-05-02 Thread Krist van Besien
Hello, I use sections quite intensively to configure my apache server. I would like to build in some user interaction during startup. For this I added the following code to my httpd.conf: (I omitted the non relevant parts) # We need a couple of modules, which we load here. use Sys::Hostna