Accessing apache request configuration from mp2

2009-07-09 Thread Mark Moseley
This is a case of I'm pretty sure I saw this before but can't for the life of me remember where -- so it might not even be possible. I'm trying to access the values of the 'Order', 'Allow', and 'Deny' apache directives, as they're set at request time, i.e. after merging. Basically what I want to d

Re: Settings $r->connection->remote_ip doesn't change $r->connection->remote_addr

2009-01-05 Thread Mark Moseley
On Thu, Dec 18, 2008 at 10:56 AM, Mark Moseley wrote: > I've been banging my head against a wall about a particular issue, but > I'm at something of a loss. >... For the benefit of anyone trying to solve this same problem after switching to mp2, there's a C module called

Settings $r->connection->remote_ip doesn't change $r->connection->remote_addr

2008-12-18 Thread Mark Moseley
I've been banging my head against a wall about a particular issue, but I'm at something of a loss. I've got a reverse proxy setup in front of apache (2.2.10 with mp 2.0.4) and setting $r->connection->remote_ip based on a header I add on the reverse proxy. All that is working ok. The bit that I'm p

Re: Apache::Session: can I have a "date" in session

2006-04-27 Thread Mark Moseley
you could also just have apache::session update that column as wellon the data store by overrideing the store mechanism If you're using MySQL 4.1 or above for your db store, you can also use a timestamp column like:ts timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMPMySQL sho

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
On 9/16/05, Carl Johnstone <[EMAIL PROTECTED]> wrote: Can add my voice to the "BigIP should do this" school of thought. If it'seffectively converting HTTPS into HTTP requests for you, then I would expectit should be able to rewrite redirects automatically for you too. Same way that apache does it i

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
On 9/16/05, Jeff <[EMAIL PROTECTED]> wrote: In your BigIPs Apache httpd.conf you might try:# bounce to https only)   ServerName  www.mywebsite.com   Redirectpermanent / https://www.mywebsite.com/Which tells your client browsers to use HTTPS for all requests for therelevant website. Unfortunate

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
On 9/16/05, Torsten Foertsch <[EMAIL PROTECTED]> wrote: Maybe in it is sufficient to set $r->subprocess_env(HTTPS=>'on') in aPostReadRequest handler. Maybe even PerlSetEnv outside any or might help. This will also set environment variables very early. $ENV{HTTPS} is not good. Ah, I'd neglected to

Re: Masquerading requests as HTTPS

2005-09-16 Thread Mark Moseley
Damyan Ivanov wrote: Wouldn't it be better to parse responses on BigIPs and replace 'http'with 'https' if redirect is detected? I have no idea how to do this, though. The BigIP has some TCL functions available during the response, but I'm assuming that any regexing I do there would be not enough,

Re: Masquerading requests as HTTPS

2005-09-15 Thread Mark Moseley
Howdy. Actually, I don't need any actual SSL functionality. All I need to do is to trick everything from the transhandler phase downwards that the URL's scheme is 'https' so that redirects have https://, not http://, since anyone doing a mod_rewrite or scripted redirect whilst in SSL would get shun

Masquerading requests as HTTPS

2005-09-15 Thread Mark Moseley
Greetings. I've been scouring the list and the net for a solution for this but my apologies in advance if I didn't get the search terms right and missed a RTFM answer. I work for a web hosting company and we recently purchased a pair of BigIPs. These have the ability to terminate SSL connections a