Interesting ReverseProxy + PerlSections issue

2001-01-14 Thread siberian

Hello all- 
I have an interesting situation and I am hoping someone can
point me in the right direction. 

Scenario : I am running two apache servers, stronghold up front for my
reverse proxy ( 80 / 443 ) and a modperl apache running on port 802. All
80/443 requests are reverse proxied to the modperl server running on Port
802.

This is all standard and works well. My problem is this :

The backend server is dynamically configured via perl sections ( for
vhosts ).Front end requests end up falling through to the default vhost since,
unless specifically configured, they must proxy to 'localhost' which does
not work ( wrong hostname ). My goal here is to have all non specifically
mapped requests fall through to the _default_ vhost and then proxied back
to port 802. I do NOT want to manually add vhosts specifically for
proxying to the static configuration file ( to much human intervention ).

I have tried this :

VirtualHost _default_:80
ProxyPass / http://localhost:802/
ProxyPassReverse / http://localhost:802/
/VirtualHost

But the backend server gets the actual localhost name as its ServerName
and does not enter the VirtualHost hash properly, giving me the
DocumentRoot for the localhost domain name.

What I need to achieve is( and if I build a static vhost like this it
works ) :

VirtualHost _default_:80
ProxyPass / http://ACTUAL_REQUEST_DOMAIN_NAME:802/
ProxyPassReverse / http://ACTUAL_REQUEST_DOMAIN_NAME:802/
/VirtualHost

Anyone know how to accomplish this? If I could access the ENV variables
in a static apache configuration it would work I imagine. I am thinking
some sort of mod_rewrite would work as well.

Sort of half modperl, half apache but I have searched and not found this 
answer yet and imagine that SOMEONE on the list must have dealt with this
sort of thing before.

Any tips are appreciated, this is a major itch in my side!

John-




[ANNOUNCE] Apache::ProxyRewrite 0.11

2001-01-14 Thread Christian Gilmore

The uploaded file

Apache-ProxyRewrite-0.11.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/C/CG/CGILMORE/Apache-ProxyRewrite-0.11.tar.gz
  size: 10843 bytes
   md5: 851e2561d7bcd9ef4fd20dd8cb735ad5


Apache::ProxyRewrite acts as a reverse-proxy that will rewrite URLs embedded in HTML 
documents per apache configuration directives.
 
This module was written to allow multiple backend services with discrete URLs to be 
presented as one service and to allow the proxy to do authentication on the client's 
behalf.

See ProxyRewrite.pm pod for detailed documentation.


2001-01-14  Christian Gilmore [EMAIL PROTECTED]
 
o  Added 'base' as an element of the LINK_ELEMENT hash
o  Made release 0.11
 
2001-01-02  Christian Gilmore [EMAIL PROTECTED]
 
o  Made first public release 0.10
 
$Id: ChangeLog,v 1.2 2001/01/14 19:47:28 cgilmore Exp $


Enjoy,
Christian

-
Christian Gilmore
Infrastructure  Tools Team Lead
Web  Multimedia Development
Tivoli Systems, Inc.





Need: Autherization one time password.

2001-01-14 Thread George Sanderson

I want an authorization module to generate a one time password for a
particular user name.
For example, lets say I target some user names to have a one time password
service by using a directive like:

Auth_onetimeruser1, user2, ...

If the password was blank (empty), the module would automagicly create and
store a new password per some format string (perhaps):

Auth_password_format"hello%16s"

After a user logs in some specified number of times (default 1), the
password would be blanked out.

Of course, someone would have to be able to view the account information,
but this should be different module.  A module that would allow an
"administrator" to view and change the user account data base.





Re: Need: Autherization one time password.

2001-01-14 Thread Matt Sergeant

I seem to recall Randal did a column in Web Techniques on just such a
thing. Check http://www.stonehenge.com/merlyn/

On Sun, 14 Jan 2001, George Sanderson wrote:

 I want an authorization module to generate a one time password for a
 particular user name.
 For example, lets say I target some user names to have a one time password
 service by using a directive like:
 
 Auth_onetimeruser1, user2, ...
 
 If the password was blank (empty), the module would automagicly create and
 store a new password per some format string (perhaps):
 
 Auth_password_format  "hello%16s"
 
 After a user logs in some specified number of times (default 1), the
 password would be blanked out.
 
 Of course, someone would have to be able to view the account information,
 but this should be different module.  A module that would allow an
 "administrator" to view and change the user account data base.
 
 
 




Re: mixing perl and c module on handler stack

2001-01-14 Thread Sander van Zoest

On Fri, 12 Jan 2001, Danny Rathjens wrote:

 If you want to know why I just don't use Apache::SSI it is because
 I am dealing with a OpenAdStream from realmedia which has a modifed
 mod_include.so which makes calls to a 'proprietary' library.
 So it seems a lot easier to just be able to send the output from my
 handler into their mod_include.

When we were using OAS we called their library call directly from our
code rather then using their mod_include.c. So I do not really see a
reason why you can not add the library call, via XS to Apache::SSI.
(I have never looked at Apache::SSI, so I am not sure how easy that
 would be.)

This way you can just use the slightly modified Apache::SSI and can
leave out mod_include.c all together.

--
Sander van Zoest [[EMAIL PROTECTED]]
Covalent Technologies, Inc.   http://www.covalent.net/
(415) 536-5218 http://www.vanzoest.com/sander/




RE: Looking for a new distro

2001-01-14 Thread Jeffrey A. Stuart

Hey just as an FYI... I've got mod_perl and apache 1.3.14 and PHP 4.04 (I
think or maybe 4.03pl1) installed with no problems on my redhat 7 box.  Now,
it's my devel box so I don't know if there are any "major" problems with it.
:)  It does double duty as my devel box and my personal router (got my cable
modem hooked up on it and then route my internal boxes through it. :)).  For
Apache/mod_perl/PHP, I downloaded the source and installed those directly
along with Mysql...

--
Jeff (FurBall)
WebOverdrive Newbie Tech Board
http://www.topniche.com/tech/
[EMAIL PROTECTED]

-Original Message-
From: Clayton Cottingham aka drfrog [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 6:05 PM
To: dreamwvr; Jamie Krasnoo
Cc: Modperl
Subject: Re: Looking for a new distro

heya all:

im really waiting for the next bunch of releases here,

im hoping that they all start doing a lil more QA before release!!

ive tried a lot of different dists and nothing has me going
"oh yeah!!"

mandrake 7.2 is my current
"lesser of  Nth evils"

last summer i went to town downloading everything from
debian to suse and back to slack and redhat

at the time i started using mandrake its mod_perl was sett up nice

its not bad on 7.2 but it splits up so there is an httpd and an httpd-perl

i dont like having to configure
both so i un-rpmd then and rolled my own, DSO style
install in less than thirty mins
drop my config in and zoom!!

again some of this has to do with how a dist sets up apache
i like it all in /home/ww
but most put the conf 's under /etc etc etc.

some of these compatiblility  file management issues drive me nuts!!
and i usually uninstall and recomp my own

well that my take on it anyhow


--
back in the day
we didn't have no
old school
-dr. frog







Re: Need: Autherization one time password.

2001-01-14 Thread George Sanderson

At 11:08 PM 1/14/2001 +, you wrote:
I seem to recall Randal did a column in Web Techniques on just such a
thing. Check
http://www.stonehenge.com/merlyn/http://www.stonehenge.com/merlyn/

 I want an authorization module to generate a one time password for a
 particular user name.

I think I found the article:
http://www.webtechniques.com/archives/2000/05/perlhttp://www.webtechnique
s.com/archives/2000/05/perl/
Self-Registering Password Protection, Part 1 

Randal's requirements were some what similar.  I wanted to randomly generate
the password for a particular user after they log in a limited number of times
and then send email to someone.

After reading the article, I thinking the best way to implement my
requirements
would be to create (or modify) an authentication module that would keep track
of how many times a user logs in and also be able to trigger (REDIRECT to) a
cgi script when certain conditions are meet.  My cgi script (custom
requirements) could then regenerate the new password and do any the
notifications required.  

The authentication trigger (REDIRECT) would be the trick, in that it should be
generic enough to allow for a whole range of other situations.  




RE: Looking for a new distro

2001-01-14 Thread Jamie Krasnoo

I found what the problem was, thanks to Michael Weiner (Hunter). For some
reason, when mod_perl is compiled in to Apache as a static, it loads the
file stated in PerlRequire twice. When I recompiled mod_perl as a DSO it
stopped doing that. This bug seems like its a problem with the RedHat
distro. I should have seen it. There may be a reason that RH 7.0 comes with
Apache compiled with all mods in DSO. This problem doesn't seem to crop up
on other distributions.

Anyways, I think we can put this thread to bed. Thanks to everyone for your
comments.

Jamie

-Original Message-
From: Jeffrey A. Stuart [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 3:48 PM
To: Clayton Cottingham aka drfrog; dreamwvr; Jamie Krasnoo
Cc: Modperl
Subject: RE: Looking for a new distro


Hey just as an FYI... I've got mod_perl and apache 1.3.14 and PHP 4.04 (I
think or maybe 4.03pl1) installed with no problems on my redhat 7 box.  Now,
it's my devel box so I don't know if there are any "major" problems with it.
:)  It does double duty as my devel box and my personal router (got my cable
modem hooked up on it and then route my internal boxes through it. :)).  For
Apache/mod_perl/PHP, I downloaded the source and installed those directly
along with Mysql...

--
Jeff (FurBall)
WebOverdrive Newbie Tech Board
http://www.topniche.com/tech/
[EMAIL PROTECTED]

-Original Message-
From: Clayton Cottingham aka drfrog [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 6:05 PM
To: dreamwvr; Jamie Krasnoo
Cc: Modperl
Subject: Re: Looking for a new distro

heya all:

im really waiting for the next bunch of releases here,

im hoping that they all start doing a lil more QA before release!!

ive tried a lot of different dists and nothing has me going
"oh yeah!!"

mandrake 7.2 is my current
"lesser of  Nth evils"

last summer i went to town downloading everything from
debian to suse and back to slack and redhat

at the time i started using mandrake its mod_perl was sett up nice

its not bad on 7.2 but it splits up so there is an httpd and an httpd-perl

i dont like having to configure
both so i un-rpmd then and rolled my own, DSO style
install in less than thirty mins
drop my config in and zoom!!

again some of this has to do with how a dist sets up apache
i like it all in /home/ww
but most put the conf 's under /etc etc etc.

some of these compatiblility  file management issues drive me nuts!!
and i usually uninstall and recomp my own

well that my take on it anyhow


--
back in the day
we didn't have no
old school
-dr. frog