Server Parsed .shtml files...

2002-11-14 Thread simran
Hi All, I have a auth protected area for the apache server: Aka, the location /auth is password protected by Perl*Handlers and usually i only write other PerlHandlers that do things under that location. However, i need to put a .shtml file into that diretory (it is also a normal directory

Re: Server Parsed .shtml files...

2002-11-14 Thread Geoffrey Young
simran wrote: Hi All, I have a auth protected area for the apache server: Aka, the location /auth is password protected by Perl*Handlers and usually i only write other PerlHandlers that do things under that location. However, i need to put a .shtml file into that diretory (it is also a

Help - SEGFAULTS on 'PerlModule' after version upgrade

2002-11-14 Thread Rafiq Ismail (ADMIN)
Ugggh: My software works with the 'original server settings', (apache 1.3.24/mod_perl 1.26) see below(1), under linux. It doesn't work with 'new server settings', (apache 1.3.26 / mod_perl 1.26) see below(2), under freeBSD. Symptoms: With the new build, I get seg faults with 'some' of the

Re: Help - SEGFAULTS on 'PerlModule' after version upgrade

2002-11-14 Thread Stas Bekman
Rafiq Ismail (ADMIN) wrote: Ugggh: My software works with the 'original server settings', (apache 1.3.24/mod_perl 1.26) see below(1), under linux. It doesn't work with 'new server settings', (apache 1.3.26 / mod_perl 1.26) see below(2), under freeBSD. Symptoms: With the new build, I get seg

@INC + use Lib

2002-11-14 Thread Pierre Smolarek
I've been having problems with use lib. I read the extract at http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perland realised that you can hardcode @INC via httpd.conf or startup.pl. however, i tried adding PerlSetEnv PERL5LIB to a .htaccess file but that doesn't seem to

Re: Server Parsed .shtml files...

2002-11-14 Thread Huili_Liu
Better choice is add .shtml to server-parsed. See below: # # To use server-parsed HTML files # AddType text/html .shtml .html .htm AddHandler server-parsed .shtml .html .htm Willy

mod_perl doesn't know where perl's installed

2002-11-14 Thread Scott Scecina
Hi! I'm running into the: Syntax error on line 1022 of c:/program files/apache/conf/httpd.conf: Cannot load c:/program files/apache/modules/mod_perl.so into server: (126) The specified module could not be found: problem on NT 4 when trying to run Apache/mod_perl as a service. (see:

Re: mod_perl doesn't know where perl's installed

2002-11-14 Thread Randy Kobes
On Thu, 14 Nov 2002, Scott Scecina wrote: Hi! I'm running into the: Syntax error on line 1022 of c:/program files/apache/conf/httpd.conf: Cannot load c:/program files/apache/modules/mod_perl.so into server: (126) The specified module could not be found: problem on NT 4 when trying

redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
I have a few AccessHandlers that I'd like to redirect the user to the correct page to get access if they don't have it. I tried ErrorDocuments, but I have multiple layers of authentication, and ErrorDocuments won't cascade. So I'm looking at switching the ContentHandler. internal_redirect()

Re: @INC + use Lib

2002-11-14 Thread Stas Bekman
Pierre Smolarek wrote: I've been having problems with use lib. I read the extract at http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perl and realised that you can hardcode INC via httpd.conf or startup.pl. however, i tried adding PerlSetEnv PERL5LIB to a .htaccess file but

How can I tell if a request was proxy-passed form an SSL server?

2002-11-14 Thread John Siracusa
Assume I have a front-end (non-mod_perl) proxy server that supports both HTTP and HTTPS. I want to know, from within my Perl code on the back-end (HTTP-only) mod_perl server, if the current request was ProxyPass-ed to me based on an original HTTP or HTTPS request from the user. There doesn't

Re: redirecting outside the Content handler

2002-11-14 Thread Geoffrey Young
Brett Sanger wrote: I have a few AccessHandlers that I'd like to redirect the user to the correct page to get access if they don't have it. I tried ErrorDocuments, but I have multiple layers of authentication, and ErrorDocuments won't cascade. So I'm looking at switching the ContentHandler.

RE: redirecting outside the Content handler

2002-11-14 Thread Narins, Josh
I think I know this one. #you might want to do this line, for edification if nothing else my $list_ref = $r-get_handlers(PerlHandler); $r-set_handlers('PerlHandler,\My::Package::handler); -Original Message- From: Brett Sanger [mailto:brs900;email1.dss.state.va.us] Sent: Thursday,

Re: redirecting outside the Content handler

2002-11-14 Thread Geoffrey Young
Narins, Josh wrote: I think I know this one. #you might want to do this line, for edification if nothing else my $list_ref = $r-get_handlers(PerlHandler); $r-set_handlers('PerlHandler,\My::Package::handler); sorry, I misread when I replied with internal_redirect_handler. set_handlers()

Re: redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
Narins, Josh wrote: I think I know this one. #you might want to do this line, for edification if nothing else my $list_ref = $r-get_handlers(PerlHandler); $r-set_handlers('PerlHandler,\My::Package::handler); Excellent! Thanks. One associated question: Is it possible to manipulate

RE: mod_perl doesn't know where perl's installed

2002-11-14 Thread Scott Scecina
Has anyone solved this problem? Is there anyway to tell mod_perl where perl is without using the PATH variable? Is it a problem just as a service, or does the same thing occur running Apache from the console? Does it help if you add, in httpd.conf, the directive LoadFile

Re: How can I tell if a request was proxy-passed form an SSL server?

2002-11-14 Thread Randy Kobes
On Thu, 14 Nov 2002, John Siracusa wrote: Assume I have a front-end (non-mod_perl) proxy server that supports both HTTP and HTTPS. I want to know, from within my Perl code on the back-end (HTTP-only) mod_perl server, if the current request was ProxyPass-ed to me based on an original HTTP or

Re: How can I tell if a request was proxy-passed form an SSLserver?

2002-11-14 Thread John Siracusa
On 11/14/02 2:12 PM, Randy Kobes wrote: On Thu, 14 Nov 2002, John Siracusa wrote: Assume I have a front-end (non-mod_perl) proxy server that supports both HTTP and HTTPS. I want to know, from within my Perl code on the back-end (HTTP-only) mod_perl server, if the current request was

Re: How can I tell if a request was proxy-passed form an SSL server?

2002-11-14 Thread Randy Kobes
On Thu, 14 Nov 2002, John Siracusa wrote: On 11/14/02 2:12 PM, Randy Kobes wrote: If your front-end proxy server has 'ProxyVia on' enabled, a Via header would get sent. According to rfc2068, the protocol name should, and port may, be supplied in this header if these aren't the

odd headers with Apache::add_version_component()

2002-11-14 Thread Josh Chamas
Hey, I'm looking to get Apache::ASP to insert itself into the module Server tokens with the add_version_component() API, so I call it like this: package Apache::ASP ... Apache::add_version_component(Apache::ASP/$VERSION); ... 1; but then it becomes the first header on the list!, and I

Re: How can I tell if a request was proxy-passed form an SSLserver?

2002-11-14 Thread John Siracusa
On 11/14/02 2:39 PM, Randy Kobes wrote: On Thu, 14 Nov 2002, John Siracusa wrote: I tried turning on ProxyVia, but all I got was the HTTP protocol version (1.1) and the host (www.foo.com), but no scheme string (e.g. http://; or https://;) Were these from requests you know were made using

Re: odd headers with Apache::add_version_component()

2002-11-14 Thread Geoffrey Young
Josh Chamas wrote: Hey, I'm looking to get Apache::ASP to insert itself into the module Server tokens with the add_version_component() API, so I call it like this: package Apache::ASP ... Apache::add_version_component(Apache::ASP/$VERSION); ... 1; but then it becomes the first

URI escaping question

2002-11-14 Thread Ray Zimmerman
Suppose I have a hash of string values that I want to include in the query string of a redirect URL. What is the accepted way of escaping the values to be sure that they come through intact? Specifically, it seems that Apache::Util-escape_uri() -- Ray Zimmerman / e-mail: [EMAIL PROTECTED] /

URI escaping question

2002-11-14 Thread Ray Zimmerman
Oops ... finger slipped before I was done typing ... Suppose I have a hash of string values that I want to include in the query string of a redirect URL. What is the accepted way of escaping the values to be sure that they come through intact? Specifically, it seems that

Re: redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
$r-set_handlers('PerlHandler,\My::Package::handler); set_handlers() should work. keep in mind that it's current not possible (IIRC) to set_handler() for the current phase. so, for the PerlHandler you'd want to do it from someplace else, like your PerlAccessHandler or something. Which is

Re: problem with session ids

2002-11-14 Thread Michael A Nachbaur
Minas wrote: Recently I installed the Apache::Session module on my server in order to give a kind of identity to my e-shop visitors, seems to work but generates different session ids when I reload the bellow test cgi. What can I do in order to have my visitor the same session id, up to close his

Re: redirecting outside the Content handler

2002-11-14 Thread Geoffrey Young
Each of these: $r-set_handlers(PerlHandler = 'My::Package'); $r-set_handlers(PerlHandler = 'My::Package::handler'); $r-set_handlers(PerlHandler = \My::Package); $r-set_handlers(PerlHandler = \My::Package::handler); give me: [error] Can't set_handler with that value Any ideas? yeah, sorry.

Re: odd headers with Apache::add_version_component()

2002-11-14 Thread Josh Chamas
Geoffrey Young wrote: from what I remember, this method is very strange - it depends lots on how your server is set up. for instance, whether you're using DSO (which breaks down the interpreter on restarts) and/or whether you have PerlFreshRestart On. both of these behaviors seem to affect

Re: odd headers with Apache::add_version_component()

2002-11-14 Thread Geoffrey Young
Even if I can get this to work through certain config tweaks, I will not add this to Apache::ASP as I would need this to be correct for all user configs, not just mine. I do not want to preempt the Apache/... header! Thanks for the follow up. Maybe I'll revist this in MP2. sure. it's

File Upload Questions

2002-11-14 Thread Dennis Daupert
I have gotten file upload working using Apache::Request for text files. But binary files seem to have other ideas :-) For example, uploading a word doc, I get a success message, but when I retrieve the doc after uploading it, and try to open it in Word 2000, I get the popup error message: The

Re: weird cookie behavior

2002-11-14 Thread Josh Chamas
valerian wrote: I'm experiencing strange behavior with cookies when my scripts are accessed in mod_perl (using Apache::Registry). Everything works fine so long as my browser is configured to not go through a proxy (ie, in Netscape 4.77, directly connected to the Internet option is selected).

Re: How can I tell if a request was proxy-passed form an SSL server?

2002-11-14 Thread Marcin Kasperski
John Siracusa [EMAIL PROTECTED] writes: Assume I have a front-end (non-mod_perl) proxy server that supports both HTTP and HTTPS. I want to know, from within my Perl code on the back-end (HTTP-only) mod_perl server, if the current request was ProxyPass-ed to me based on an original HTTP or

Re[2]: redirecting outside the Content handler

2002-11-14 Thread Mike P. Mikhailov
Hello Brett Sanger, Friday, November 15, 2002, 1:25:19 AM, you wrote: $r-set_handlers('PerlHandler,\My::Package::handler); set_handlers() should work. keep in mind that it's current not possible (IIRC) to set_handler() for the current phase. so, for the PerlHandler you'd want to do it

Re: How can I tell if a request was proxy-passed form an SSL server?

2002-11-14 Thread Carolyn Hicks
On Thu, Nov 14, 2002 at 12:45:52PM -0500, John Siracusa wrote: Assume I have a front-end (non-mod_perl) proxy server that supports both HTTP and HTTPS. I want to know, from within my Perl code on the back-end (HTTP-only) mod_perl server, if the current request was ProxyPass-ed to me based on

Re: URI escaping question

2002-11-14 Thread Kyle Oppenheim
According to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) the reserved characters in the query component of a URI are ;, /, ?, :, @,, =, +, ,, and $. Apache::Util-escape_uri() does not escape :, @, , =, +, ,, or $. Something like the following should work: use URI::Escape qw(uri_escape);

Re: Server Parsed .shtml files...

2002-11-14 Thread simran
Thanks Geoff, you are an absolute genius. I wrote a little PerlFixupHandler to solve the issue as that was most appropriate for the configuration i had. thanks again, simran. On Fri, 2002-11-15 at 00:57, Geoffrey Young wrote: simran wrote: Hi All, I have a auth protected area

Re: How can I tell if a request was proxy-passed form an SSLserver?

2002-11-14 Thread John Siracusa
On 11/14/02 5:48 PM, Marcin Kasperski wrote: What about the simple manual solution: frontend server proxies /some/url to /http/some/url on backend for HTTP and to /https/some/url on backend for HTTPS. Or something similar... On 11/14/02 6:56 PM, Carolyn Hicks wrote: If you can proxy-pass HTTP

Re: How can I tell if a request was proxy-passed form an SSLserver?

2002-11-14 Thread Rob Nagler
John Siracusa writes: and that does the trick. The full code for the module is at the end of this message. But I still think this is an ugly hack, and I'd like to be able to do this using standard apache modules or config parameters... Our hack is to forward 443 to port 81 on the middle

Re: URI escaping question

2002-11-14 Thread Kyle Oppenheim
It looks like the default character class used by URI::Escape::uri_escape changed in version 1.16 to be exactly the same as the one I suggested. Older versions didn't escape the reserved characters. - Kyle - Original Message - From: Kyle Oppenheim [EMAIL PROTECTED] To: modperl List

Re: File Upload Questions

2002-11-14 Thread Randy Kobes
On Thu, 14 Nov 2002, Dennis Daupert wrote: I have gotten file upload working using Apache::Request for text files. But binary files seem to have other ideas :-) For example, uploading a word doc, I get a success message, but when I retrieve the doc after uploading it, and try to open it in

Re: File Upload Questions

2002-11-14 Thread David Kaufman
Dennis Daupert [EMAIL PROTECTED] wrote: I have gotten file upload working using Apache::Request for text files. But binary files seem to have other ideas :-) For example, uploading a word doc, I get a success message, but when I retrieve the doc after uploading it, and try to open it in

Re: mod_perl doesn't know where perl's installed

2002-11-14 Thread Juergen Heckel
Randy Kobes wrote: The specified module could not be found: problem on NT 4 when trying to run Apache/mod_perl as a service. Does it help if you add, in httpd.conf, the directive LoadFile C:/Path/to/Perl/bin/perl56.dll before loading mod_perl.so? Hi Randy, I had the same problem with

Hellp! mod_perl worked fine then added modssl and now apache won't start

2002-11-14 Thread Mitchel, Jennifer (Jem)
Hi all, I am still new to all of this. I had Apache 1.3.22 with mod_perl included and the Authenitcation hook enabled. Everything was fine. Then I imstalled my OpenSSL and generated my key, got my server certificate from my csr etc fine. The certificate has been verified. I then