Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread Mark James
Mark James wrote: I'm having CGI redirect problems mp2 (cvs). Instead of being redirected to the proper web page, I'm sometimes getting a 302 Moved page containing a link to the correct URL. Damn this was a hard bug to track down. The cause of the problem was my perl code calling flush.pl and

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread dom
The cause of the problem was my perl code calling flush.pl and flushing STDOUT at a point prior to it printing the response headers. Under mp2, flushing STDOUT calls mpxs_output_flush in xs/Apache/RequestIO/Apache__RequestIO.h, which in turn calls ap_rflush, which triggers creation of the

inline mod_perl - is this possible?

2003-03-19 Thread www.ReadNotify.com
Hi, I want to do this (serverside of course); is it possible? html I am running !#perl print $ENV{MOD_PERL}; print process ID $$; /!#perl on Apache!! /html What modules/config/etc do I need to set up? Chris. __ Do you Yahoo!? Yahoo! Platinum -

Re: inline mod_perl - is this possible?

2003-03-19 Thread Thomas Klausner
Hi! On Wed, Mar 19, 2003 at 03:55:20AM -0800, www.ReadNotify.com wrote: I want to do this (serverside of course); is it possible? html I am running !#perl print $ENV{MOD_PERL}; print process ID $$; /!#perl on Apache!! /html What modules/config/etc do I need to set up? There are

Re: inline mod_perl - is this possible?

2003-03-19 Thread Randal L. Schwartz
www == www ReadNotify com [EMAIL PROTECTED] writes: www html www I am running www !#perl www print $ENV{MOD_PERL}; www print process ID $$; www /!#perl www on Apache!! www /html www What modules/config/etc do I need to set up? Either Mason or Template Toolkit would probably do. I prefer the

Re: inline mod_perl - is this possible?

2003-03-19 Thread Helmut Zeilinger
Hi, Apache::ASP also works very fine: http://www.apache-asp.org/ Helmut --On Wednesday, March 19, 2003 03:55:20 -0800 www.ReadNotify.com [EMAIL PROTECTED] wrote: Hi, I want to do this (serverside of course); is it possible? html I am running !#perl print $ENV{MOD_PERL}; print process ID $$;

Re: binary cgi mess ( repost )

2003-03-19 Thread Francesc Guasch
Nikolaus Rath wrote: Francesc Guasch [EMAIL PROTECTED] wrote: Location /nagios/cgi-bin Options ExecCGI /Location Alias /nagios/ /usr/share/nagios/ Directory /usr/share/nagios/ AllowOverride AuthConfig Options None I suspect that the Options directive in the directory section

Re: binary cgi mess ( repost )

2003-03-19 Thread Francesc Guasch
Abdul-wahid Paterson wrote: Hi, Thank you again for answering me, Abdul-wahid. This is the config I have for nagios on one of my servers. I also have mod_perl working so there should be no problem with the two together. (My directory paths are different to yours but the principle is the same) I

RE: binary cgi mess ( repost )

2003-03-19 Thread Frank Maas
Comparing your post and that of others, I see that you use Authentication through mod_perl. What happens if you completely disable Authentification? Do you still experience the same problem? --Frank

I`m not sure what is going on...

2003-03-19 Thread Alain . Lavoie
Hi, I have a script called update.pl in the directory /web/dev/scripts. This script is configure to run under mod_perl. I got another script with the same name update.pl in /web/stage/scripts. This script is also configure mod_perl. My question: is Apache know the difference between

Re: I`m not sure what is going on...

2003-03-19 Thread Perrin Harkins
On Tue, 2003-03-18 at 19:16, [EMAIL PROTECTED] wrote: I have a script called update.pl in the directory /web/dev/scripts. This script is configure to run under mod_perl. I got another script with the same name update.pl in /web/stage/scripts. This script is also configure mod_perl.

Hiding the .pl

2003-03-19 Thread KIVES,BRUCE (HP-USA,ex1)
I have recently updated from Apache 1.3.23? to 1.3.27. Things are behaving differently, and I think the problem lies with mod_speling. Previously, if there was only one possible choice for a misspelled URL, it would just redirect it without asking. Now it asks every time. I used this feature to

Compiling libapreq 1.1 on Mac OS 10.2.4

2003-03-19 Thread Ken Y. Clark
I've been trying to compile libapreq 1.1 (Apache::Request) on Mac OS 10.2.4 for a couple of hours, but I'm having no luck. I've been following the directions in the INSTALL.MacOSX file and following along with David Wheeler's article Installing libapreq on Jaguar: An Update

Re: Hiding the .pl

2003-03-19 Thread Magnus Bodin
On Wed, Mar 19, 2003 at 02:04:31PM -0500, KIVES,BRUCE (HP-USA,ex1) wrote: Any other ideas on how to hide the .pl ? I usually use mod_rewrite. The swiss-army-knife for URL-polishing. /magnus -- http://x42.com

[OT] Re: Hiding the .pl

2003-03-19 Thread Robert Landrum
You might want to consider downloading the 1.3.23 source for mod_speling and using diff to see if they changed something. It might be something simple that can be changed and patched. You also might be able to use the mod_speling from 1.3.23 in 1.3.27 without any problem. Given the relative

Compiling libapreq 1.1 on Mac OS 10.2.4: Solved

2003-03-19 Thread Ken Y. Clark
Well, I guess taking a break from the problem helped me fix it, but I'm not sure how. I came back to my machine, removed the symlink in /usr/bin/ to /sw/bin/glibtool and restored the original libtool binary, removed the existing libapreq source directory, unpacked it from the tarball, and started

Re: Hiding the .pl

2003-03-19 Thread Perrin Harkins
KIVES,BRUCE (HP-USA,ex1) wrote: Any other ideas on how to hide the .pl ? There are dozens of ways to make /calendar/month run month.pl. Here are some simple ones: - mod_rewrite - Alias - DirectoryIndex month.pl You could also turn month.pl into a handler and just do this: Location

notes() and mod_perl ErrorDocuments

2003-03-19 Thread Hann, Brian
Title: Message I have a mod_perl handler set as the 401 ErrorDocument for a certain location that requires authentication. I would like to store data in notes() in the first location so that the 401 handler can access them. Is that possible? So far I haven't been able to get it to work. If

Re: notes() and mod_perl ErrorDocuments

2003-03-19 Thread Geoffrey Young
Hann, Brian wrote: I have a mod_perl handler set as the 401 ErrorDocument for a certain location that requires authentication. I would like to store data in notes() in the first location so that the 401 handler can access them. Is that possible? So far I haven't been able to get it to work.

RE: notes() and mod_perl ErrorDocuments

2003-03-19 Thread Hann, Brian
Actually I think I got it, but thanks for the tip on $r-prev-notes. I'll have to give it a try. And yes, I've been poring over the cookbook for most of the day :) Here's what I ended up doing: When I hit a place in my authen module that required me to do: $r-note_basic_failure; return

Re: notes() and mod_perl ErrorDocuments

2003-03-19 Thread Geoffrey Young
Hann, Brian wrote: Actually I think I got it, but thanks for the tip on $r-prev-notes. I'll have to give it a try. And yes, I've been poring over the cookbook for most of the day :) :) Here's what I ended up doing: When I hit a place in my authen module that required me to do:

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread Stas Bekman
Mark James wrote: Mark James wrote: I'm having CGI redirect problems mp2 (cvs). Instead of being redirected to the proper web page, I'm sometimes getting a 302 Moved page containing a link to the correct URL. Damn this was a hard bug to track down. The cause of the problem was my perl code

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread Stas Bekman
[EMAIL PROTECTED] wrote: The cause of the problem was my perl code calling flush.pl and flushing STDOUT at a point prior to it printing the response headers. Under mp2, flushing STDOUT calls mpxs_output_flush in xs/Apache/RequestIO/Apache__RequestIO.h, which in turn calls ap_rflush, which triggers

Does Indexes work with mod_perl?

2003-03-19 Thread Daisuke Maki
Hi, I'm having a hard time making mod_perl(1.27) enabled Apache treat requests to directories so that the directory listing is shown (like the default behavior when there is not DirectoryIndex file). I pretty much just threw away all of my mod_perl specific configuration from my httpd.conf, and

RE: Hiding the .pl

2003-03-19 Thread KIVES,BRUCE (HP-USA,ex1)
mod_rewrite looks like it will be the correct way to go in the future, but a half dozen Alias got the site working again quickly. I thought that Alias was only good for aliasing directories. It can be used for individual files. For future reference, using my example:

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread Mark James
Stas Bekman wrote: Mark James wrote: The cause of the problem was my perl code calling flush.pl and flushing STDOUT at a point prior to it printing the response headers. Hmm, why do you flush? STDOUT is flushed prior to a fork to exec an external binary (rcs). The child is closing STDOUT and then

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread Stas Bekman
Mark James wrote: Stas Bekman wrote: Mark James wrote: The cause of the problem was my perl code calling flush.pl and flushing STDOUT at a point prior to it printing the response headers. Hmm, why do you flush? STDOUT is flushed prior to a fork to exec an external binary (rcs). The child is

Re: [mp2] CGI redirects incorrectly handled?

2003-03-19 Thread Stas Bekman
Stas Bekman wrote: As I wrote this, I'm actually starting to think that it's Apache who should ignore the flush bucket if it had seen no other data so far, and not generate any headers till it actually sees the real data. And I went to produce a patch in http_filter, I figured that that would