Re: What a strange error...

2010-06-29 Thread Devin Teske
script headers: mailfile.pl, referer: > >>>> http://www... > >>> > >>> That reminds me: > >>> > >>> 1) chmod +x mailfile.pl > >>> 2) dos2unix mailfile.pl > >>> > >> > > > > Perhaps cp removes

Re: Announcing: Server::Control and apachectlp

2009-11-23 Thread Devin Teske
om templates and > auto-restarting a server on file change. > > If you try this and have problems getting it to work, or suggestions > for improvement, please let me know! > > Jon > -- Cheers, Devin Teske -> CONTACT INFORMATION <- Field Engineer FIS - Vicor Busi

Re: Overwriting a cookie in request header

2009-11-17 Thread Devin Teske
Oops... forgot ending right-paren to add(). Replace (in all examples): . "; domain=$domain"; with: . "; domain=$domain"); ^_^ -- Devin On Tue, 2009-11-17 at 07:31 -0800, Devin Teske wrote: > Try this: > > use CGI::Util; > my $domain = "

Re: Overwriting a cookie in request header

2009-11-17 Thread Devin Teske
> [2] $cookie = $r->headers_in->{Cookie}; > > $r->headers_out->{Cookie}=$cookie; > > Does not do anything to the existing cookie … does not even add a new > cookie. > > [3] $cookie = $r->headers_in->{Cookie}; > @cookies = split(/;/,$cookie); > $

Re: FreeBSD 7.2, mod_perl2 & Apache2::Cookie (libapreq2)

2009-10-29 Thread Devin Teske
there are some gotchas (for example, if you don't use --with-devrandom configure option, then the FreeBSD system will eventually cause HTTPS clients to hang as the system waits for more entropy to be gathered for /dev/random (redefining to /dev/urandom solves this problem). -- Devin Teske

Re: FreeBSD 7.2, mod_perl2 & Apache2::Cookie (libapreq2)

2009-10-29 Thread Devin Teske
ack when done (and optionally perform the following command once-more if you also need the current system to be updated for testing rather than just packing). 7. sr make install -- Devin Teske On Thu, 2009-10-29 at 17:31 +0100, André Warnier w

Re: Custom INC per-directory

2009-10-20 Thread Devin Teske
Ended up just knocking out the PerlSetEnv LIBDIR in favor of giving librequire a new first variable of $r and basing the lib path off of $r->filename() Why $r->filename() you say? Because $r->uri() is before any Alias translations with mod_alias. -- Devin Teske - Origina

Re: Custom INC per-directory

2009-10-20 Thread Devin Teske
essary, always getting the right module, whether it's provided by cache or not. -- Devin Teske - Original Message ----- From: "Brad Van Sickle" To: "Adam Prime" Cc: "Alan Young" ; "Devin Teske" ; "Michael Peters" ; Sent: Tuesday,

Re: Custom INC per-directory

2009-10-20 Thread Devin Teske
uld be caching that file upon 'do' assumedly -- based on what I've read so far in the online 'tomes'). Also, the different environments are not accessed evenly. There's usually one environment that receives 99% of the traffic throughout the day. So the caching shou

Re: Custom INC per-directory

2009-10-20 Thread Devin Teske
= @_; warn 'bar-version of allow called'; return Apache2::Const::OK; } 1; This allows me to use a different library depending on what directory the user is browsing (coded in the .htaccess file of the directory tree). -- Devin On Tue, 2009-10-20 at 12:07 -0700,

Re: Custom INC per-directory

2009-10-20 Thread Devin Teske
sn't that work a heck of a lot better? -- Devin On Tue, 2009-10-20 at 14:32 -0400, Michael Peters wrote: > On 10/20/2009 01:06 PM, Devin Teske wrote: > > > I've been trying for what feels like months now to find some way to have > > two directories specify

Re: Custom INC per-directory

2009-10-20 Thread Devin Teske
o do what you want is to run two separate servers (or > just use plain CGI - no mod_perl). > > You're going to need to use different module names. But, if > MyAuth::Authnz contains a lot of functionality which you need in both > modules, then why not subclass it and put the

Custom INC per-directory

2009-10-20 Thread Devin Teske
Hi there, list, I've been trying for what feels like months now to find some way to have two directories specify the same module name to PerlInitHandler but to use two different modules. For example, I'd like to be able to have: File 1: /usr/foo/.htaccess: PerlInitHandler MyAuth::Authnz.pm # We

Re: user undef

2009-09-30 Thread Devin Teske
if ($r->user eq $password) { > print Apache2::Const::OK; > } > > $r->note_basic_auth_failure; > return Apache2::Const::HTTP_UNAUTHORIZED; > } > > 1; > > My password is filled up, but $r->user is undefined... > Any ideas? > > Thank

Re: a better way to recognize module changes

2009-09-11 Thread Devin Teske
2009 at 3:02 PM, Devin Teske wrote: > > Maybe somebody can refute what I'm seeing, but as of mod_perl-2.0.4, > > Apache2::Reload is gone (so you can remove that from your list of > > options). > > It was not bundled with 2.0.4 but is available on CPAN: > >

Re: a better way to recognize module changes

2009-09-11 Thread Devin Teske
> > > ** - You can try to load things only on demand, but often mod_perl > code is written without 'use' statements as it assumes everything is > loaded in the parent. You can also try to minimize the number of > potentially-changing modules, but then you run the