dynamically set AuthUserFile

2000-04-17 Thread Scott Alexander
dynamically? And set AuthName dynamically? Any help or pointers in the right direction will be very much appreciated. regards Scott Scott Alexander tietoverkkosuunnittelija [EMAIL PROTECTED] gsm: +358 (0)40 7505640

Setting AuthUserFile dynamically ...

2000-04-18 Thread Scott Alexander
rds Scott -------- Scott Alexander tietoverkkosuunnittelija [EMAIL PROTECTED] gsm: +358 (0)40 7505640

Best way?

2000-05-11 Thread Scott Alexander
. Before this I didn't pass %output to each sub ... to be honest I really didn't understand how each sub new the values in %output. After turning on use strict I had to pass \%output because %output was empty in the subs. hope this makes sense. Scott Scott

Using -w in a package

2000-05-10 Thread Scott Alexander
Scott Alexander tietoverkkosuunnittelija [EMAIL PROTECTED] gsm: +358 (0)40 7505640

using a module to contain settings.

2000-06-22 Thread Scott Alexander
I'm working on creating a site that is completely done in mod perl. The area that I'm running into problems with is using a single module to store configuration information. ie where images are stored. oracle settings, color codes etc. All the settings that are valid accross the entire site.

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 22 Jun 2000, at 17:51, Perrin Harkins wrote: On Thu, 22 Jun 2000, Scott Alexander wrote: I then have an Initialize_globals function that I run to reset all the variables at the begining of a request. Why would you reset all of your configuration globals at the beginning of a request

Re: using a module to contain settings.

2000-06-23 Thread Scott Alexander
On 23 Jun 2000, at 13:27, Perrin Harkins wrote: On Fri, 23 Jun 2000, Scott Alexander wrote: Okay, this is an easy one. You are declaring $imgserver as a lexical (my) variable. When Perl finishes executing this file, lexical variables go out of scope. You can fix this by making it a real

Re: Browser Sniffing

2000-06-29 Thread Scott Alexander
Looking at this, I'm tempted to do a similar thing. My thought was to take the code and then twist it slightly to put the information into a database. ie when I create a new session, grab the information about browser etc. Would save me a bit if it were already a completed apache::

Re: Apache/mod_perl

2000-07-07 Thread Scott Alexander
So if i didn't want to wait, how would I go about getting an RSA liscense? to have a mod_ssl server before then. Also, are the CA's willing to sign for this time of server? Scott On 7 Jul 2000, at 11:34, Rob Tanner wrote: If you can patiently wait till September 21 when the RSA patents

Re: Apache/mod_perl

2000-07-07 Thread Scott Alexander
The issue has less to do with the cost of the whole thing, then with Strong hold having horrible support as well as a laundry list of other problems. Our as we convert our code base into completely mod_perl modules, the stronghold 2.4.2 has to be replaced by either 3.x or going to some

Re: Best book

2000-07-11 Thread Scott Alexander
I used the eagle book. I have done very well with it. Are there really any other books out there on the subject? Scott On 11 Jul 2000, at 10:22, Pramod Sokke wrote: Any ideas on which is the best book available out there for mod_perl?

hashes and mod_perl

2000-10-31 Thread Scott Alexander
Hi, Is it possible using the magic of mod_perl to set a hash array available for all scripts without each script having to open the dbm file. eg Each of my scripts tie a dbm file to a hash array (%output). (about 600 elements) In some of my scripts I'm using functions recursively. Passing

Re: hashes and mod_perl

2000-10-31 Thread Scott Alexander
Hi there, On Tue, 31 Oct 2000, Scott Alexander wrote: Is it possible using the magic of mod_perl to set a hash array available for all scripts without each script having to open the dbm file. It's not really a mod_perl specific problem. You need to take care of the possibility

Re: learning for someone like me

2000-11-19 Thread Scott Alexander
a response to this thread. I should have bought this book along time ago! Who chose the title for this book? Scott __ scott alexander humak amk - humak poly technic tietoverkkosuunnittelija software developer +358 (0)40 7505640

Help with Perl in httpd.conf

2000-12-31 Thread Scott Alexander
;) regards Scott Perl #!perl $Location {"/users/supervisor"} = { Limit = {"GET POST PUT DELETE "} = { Require = 'supervisor', }, } ; __END__ /Perl _____ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Help with Perl in httpd.conf

2000-12-31 Thread Scott Alexander
MySQL_Password_Field = 'passwd', Auth_MySQL_Encryption_Types = 'Plaintext', Auth_MYSQL = 'on', Limit = { METHODS = `GET POST`, require = `user supervisor`, }, } ; __END__ /Perl _____ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Help with Limit in Perl

2000-12-31 Thread Scott Alexander
"GET", 'Require' = "valid-user", #'METHODS' = "POST", 'Require' = "valid-user", }, } ; __END__ /Perl If I uncomment the last methods line then it doesn't work at all. But with only one methods line like it is now it works. How do I use Apache-httpd_conf ? regards Scott _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Re: Help with Limit in Perl

2001-01-01 Thread Scott Alexander
xsc01', }, } ; __END__ /Perl --- End of forwarded message --- _____ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Re: Help with Limit in Perl

2001-01-01 Thread Scott Alexander
/ +-- _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Too many connections with DBI

2001-01-10 Thread Scott Alexander
I with 256 MB, mysql 3.22.27, Apache 1.3.14, mod_perl 1.24_01 Alll with just standard installations. I haven't tweaked anything. Any help would be appreciated. regards Scott _____ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Re: Too many connections with DBI

2001-01-10 Thread Scott Alexander
ached it's maximum life ? How many connections can you have open from DBI to mysql ? I have 9 db's with 10 children ~ 90 connections . All use the same user. Should I increase the memory from 256 MB to ? I have read http://perl.apache.org/guide/databases.html Scott ___

Re: Too many connections with DBI

2001-01-12 Thread Scott Alexander
On 11 Jan 2001, at 8:28, Scott Alexander wrote: My original message was below. I always understood each Apache child runs for a set number of times then stops. But I checked my httpd.conf file and the MaxRequestsPerChild is set to 0 Why would it ever ask for a new connect

Difference between NN and IE

2001-02-16 Thread Scott Alexander
Hi, Why is it Netscape displays the pop up authenticate window when the user enters the wrong password. But Internet Explorer displays my 401.html page if I return an AUTH_REQUIRED; from my AuthAny.pm handler? If I click on the pop up window cancel in Netscape then it will display the

Setting remote_user and passwd

2001-02-16 Thread Scott Alexander
them to login again but can I get pass this stage? Would using cookies by pass this problem? regards Scott _ scott alexander tietoverkkosuunnittelija humak amk - finland +358(0)407505640

Environment variables in startup.pl

2001-04-27 Thread Scott Alexander
Should this work in a startup.pl file my $hostname = $ENV{HOSTNAME} ; from the prompt I can write echo $HOSTNAME and get the correct hostname of the server. But from within startup.pl I don't get it. Scott

undef an array

2001-06-01 Thread Scott Alexander
Hi, in my code I have my @upper_id ; during the code I pass the array by reference to a sub routine and push values onto it. push @{$upper_id}, $row[0] ; Some of my code I have arrays of strings or ints. I might add 100 or more items to each array. The strings could be 50 characters long.

Re: [OT] Re: DB_File needs compatible versions

2001-10-03 Thread Scott Alexander
On Wed, 3 Oct 2001 [EMAIL PROTECTED] wrote: 1) I changed the symlink of db.h under /usr/include (btw, I'm using redhat 7.1) and point it to db2/db.h i.e. lrwxrwxrwx1 root root8 Jul 12 11:05 db.h - db2/db.h 2) untar the source of db_file.pm and modify the config.in

Re: modperl questions

2001-12-18 Thread Scott Alexander
On Tue, 18 Dec 2001, Alastair Stuart wrote: question one There is a need to add new client profiles to the centralised database, which create new application filesystems, new database structures and CGI trees. Thus a new profile can be created and activated with the push of a few buttons,

Reverse Proxy Setup

2002-09-26 Thread Scott Alexander
Hi, I have two experimental servers frontend and mod_perl. mod_perl is apache with mod_perl frontend is apache lightweight My config only passes *.pl thru to mod_perl When a user uploads a file they use a mod_perl script on mod_perl and the file is saved on mod_perl. But I want the file to

reverse_proxy ?

2002-10-30 Thread Scott Alexander
Hi, In a test environment I have a apache front_end server and a apache mod_perl server both are on two physical different machines, plus another machine for the database. Our production server is one machine running only one instance of apache/mod_perl and another machine for the database.

[OT] mod_proxy, mod_perl, php

2002-12-18 Thread Scott Alexander
At the moment I have a front_end server with no php support. Backend is mod_perl. I'm planning to extend our document management system to serve www pages. The html documents are on the mod_perl machine. What happens if users add php code to their html documents? If I add php support on the

Re: [OT] mod_proxy, mod_perl, php

2002-12-19 Thread Scott Alexander
On Wed, 18 Dec 2002, Perrin Harkins wrote: Scott Alexander wrote: At the moment I have a front_end server with no php support. Backend is mod_perl. I'm planning to extend our document management system to serve www pages. The html documents are on the mod_perl machine. What happens

Apache::TicketAccess

2003-02-20 Thread Scott Alexander
Hi, I'm trying to use the example from the Eagle book on page 309 - 314 using the TicketAccess, TicketMaster, TicketTool handlers. In TicketMaster in sub go_to_uri it sets the a cookie with the $ticket. I can print $ticket to error log to see what it contains. But for some reason the cookie

Re: Apache::TicketAccess

2003-02-20 Thread Scott Alexander
On Thu, 20 Feb 2003, Scott Alexander wrote: If I set my browser to david:8080/login.pl then everything works okay, Cookie gets set, and my session is current until I logout. So the setup is something to do with mod_proxy on the proxy server. Is it the cookie doesn't get sent back thru

Override Authentication for one sub directory

2003-03-02 Thread Scott Alexander
Hi, I'm using Apache-AuthCookie-3.04 for authentication I have a protected directory with 10 sub directories, one directory needs to be open to any user. I could write 10 Directory /usr/local/systems/work/directory_1 or use a PERL section in the conf file to create the 10 directory directives.

$r-headers_in-get('Referer') doesn't work with IE

2003-03-04 Thread Scott Alexander
Hi, I using recipe 10.4 from the mod_perl cookbook. in sub logout ($$) { # I'm setting the logout address to be the login page again. My login page # is made up of /bin/$environment_name/ # With Netscape it works fine .. my ($self, $r) = @_; my $uri = $r-headers_in-get('Referer') ;

Re: gzipchain

2003-05-27 Thread Scott Alexander
On Mon, 26 May 2003, Perrin Harkins wrote: Scott Alexander wrote: Yes if I join all my output using $print = $print . html source and then one print at the end AND change my script name from script.pl to script.html it works. The script I experimented on went from 15000 bytes

Re: gzipchain

2003-05-28 Thread Scott Alexander
to write your own fixup handler to turn compression off dynamically. Please let me know if it works for you. Thanks, Slava - Original Message - From: Scott Alexander [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 11:04 PM Subject: Re: gzipchain On Mon, 26

Missing html code using dynagzip

2003-06-02 Thread Scott Alexander
Hi, When using Files *.pl SetHandler perl-script PerlHandler Apache::RegistryFilter Apache::Dynagzip PerlSetVar Filter On PerlSetVar LightCompression On Options +ExecCGI PerlSetVar UseCGIHeadersFromScript Off

Re: Missing html code using dynagzip

2003-06-03 Thread Scott Alexander
LightCompression On the problem comes back. I had tested having this line commented out but it made no difference. Anyway good that it is working. Thanks. Regards Scott 4. Let us know details of what you finally have. Thanks, Slava - Original Message - From: Scott Alexander [EMAIL