Re: mod_perl and mod_rewrite can work together ?

2012-01-26 Thread Torsten Förtsch
On Thursday, 26 January 2012 13:02:09 Idel Fuschini wrote: > $f->headers_out->set(Location => $location); err_headers_out? Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl and mod_rewrite can work together ?

2012-01-26 Thread Hibbard, Timothy
; From: Idel Fuschini mailto:idel.fusch...@gmail.com>> Date: Thu, 26 Jan 2012 07:02:09 -0500 To: modperl List mailto:modperl@perl.apache.org>> Subject: mod_perl and mod_rewrite can work together ? I've got this issue, in httpd.conf: PerlTransHandler +Apache2::MyRedirect RewriteRu

mod_perl and mod_rewrite can work together ?

2012-01-26 Thread Idel Fuschini
I've got this issue, in httpd.conf: PerlTransHandler +Apache2::MyRedirect RewriteRule ^/$ /home/index.html [R=301] my mod_perl2 module in some condition need to redirect the browser to another site. But my web server ignored my module. This is the code: use Apache2::RequestRec (); use Ap

Re: mod_perl vs. mod_rewrite precedence?

2010-06-15 Thread Vincent Veyron
E R wrote: It seems that if there is a mod_perl handler installed at a location, a mod_rewrite rule rewriting that location to another doesn't have any effect. I noticed that with mod_dir in Apache2 : it won't redirect for 'trailing slash' if a handler is configured fo

mod_perl vs. mod_rewrite precedence?

2010-06-08 Thread E R
I'm trying to figure out how mod_perl and mod_rewrite work together. This is with Apache 1.3.41, mod_perl 1.30, perl 5.8,9. It seems that if there is a mod_perl handler installed at a location, a mod_rewrite rule rewriting that location to another doesn't have any effect. Below i

FilesMatch and mod_rewrite [slightly offtopic]

2008-03-04 Thread Michael Peters
We have a web application that uses authentication, and we task mod_auth_tkt with that. Authentication takes place on the proxy, and CGI requests are passed to a second mod_perl server using mod_rewrite. We recently ran into the following problem, however. We are putting the auth_tkt directives

Re: mod_rewrite is working strangely while using mod_perl

2007-10-07 Thread Geoffrey Young
> as a workaround, please try adding > > $r->subprocess_env(); > > before you examine %ENV. it should force re-population of %ENV from the > subprocess_env table, which is where mod_rewrite stashes it's stuff. a few other things as well... your provides is

Re: mod_rewrite is working strangely while using mod_perl

2007-10-07 Thread Geoffrey Young
t; it turns out, that we do not have this problem using mod_cgi. So, I guess > it's worth to have a closer look at it ;-) as a workaround, please try adding $r->subprocess_env(); before you examine %ENV. it should force re-population of %ENV from the subprocess_env table, which is where mod_rewrite stashes it's stuff. --Geoff

Re: mod_rewrite is working strangely while using mod_perl

2007-10-07 Thread Marco Bretschneider
Hi again, > please explicitly add > > +SetupEnv > > to your PerlOptions under /folder added this option - same effect. > so, I'd like you to try a few things... > > first, please verify that this is not a problem with mod_cgi as well. > that is, take your same setup, but use > > SetHandl

Re: mod_rewrite is working strangely while using mod_perl

2007-10-05 Thread Geoffrey Young
Marco Bretschneider wrote: > Hi, > > I reported a bug that seems to be related to mod_rewrite of apache. > It turns out, that the problem only occurs while using mod_perl. > Note, that everything else is working fine with mod_perl. Anyway I'm > not quite sure where this b

mod_rewrite is working strangely while using mod_perl

2007-10-05 Thread Marco Bretschneider
Hi, I reported a bug that seems to be related to mod_rewrite of apache. It turns out, that the problem only occurs while using mod_perl. Note, that everything else is working fine with mod_perl. Anyway I'm not quite sure where this bug belongs to (mod_perl or mod_rewrite). I was ask

Apache2::AuthenNTML and mod_rewrite

2007-06-12 Thread Carlos Carrascal
Hi, I have an issue with Apache2::AuthenNTLM and mod_rewrite, and seems that nobody else is having this problem. Maybe I missed something very simple, or maybe nobody else is doing this (wich I doubt). Let's see if I can explain the problem. Our environment is like this: - Debian Etch - A

Re: mod_rewrite

2006-11-10 Thread Jordan McLain
/cpproduct_selector.pl(.*) /cgi-bin2/cpproduct_selector.pl$1 RewriteLog "/tmp/rewrite.log" RewriteLogLevel 3 On 11/10/06, Anthony Gardner <[EMAIL PROTECTED]> wrote: I don't know if this is the right place to ask but in the log created by mod_rewrite, it tells me t

mod_rewrite

2006-11-10 Thread Anthony Gardner
I don't know if this is the right place to ask but in the log created by mod_rewrite, it tells me that it's prefixing my local_path with document_root.what I want is the server_root!!This is in a virtual hostRewriteEngine on##RewriteBase SERVERROOT/p4cRewriteRule /cgi-bin/

Re: Mason and mod_rewrite

2005-12-08 Thread Diona Kidd
Eric, Thank you so much for the ideas! Turns out Easy Fix #1 was the ticket and kept the project within requirements. Unfortunately, I can't redirect due to project requirements. That would have made this much simpler. Still working on implementation but tests have proved successful. This se

Re: Mason and mod_rewrite

2005-12-07 Thread Eric Ryan Harrison
Resending message because: A) I forgot to send to the list B) there's another option that may be easier. I just tested this so I know it works. 1) Create the file dhandler in your document root for mysite.com. 2) Add this code: <%init> my $arg = $m->dhandler_arg; $m->redirect("http://mysite2.c

Re: Mason and mod_rewrite

2005-12-07 Thread Diona Kidd
correction. http://myserver.com/spanish/* gets rewritten to http://myserver2.com/* Diona Kidd wrote: I hope that someone will take the time to read this and help. I'm a bit stumped. If I've posted this to the incorrect list, please advise. This seems to be some combo of mod_perl, apache and

Mason and mod_rewrite

2005-12-07 Thread Diona Kidd
I hope that someone will take the time to read this and help. I'm a bit stumped. If I've posted this to the incorrect list, please advise. This seems to be some combo of mod_perl, apache and Mason. I have two apache instances running with Mason and mod_perl. I'm rewriting

Re: Mod_Perl2 w/mod_proxy/mod_rewrite

2005-10-01 Thread Jonathan Steffan
The rewrite rule is different. Something like: RewriteRule ^(*.)/(*.)/(*.) http://localhost:8080/perl-bb/script.pl?a=$1&b=$2&c=$3 [P] However, I worked around the issue and used a ProxyPass to pass the request to the backend and _then_ do the rewrite. The handler is also different. -Jon P

Re: Mod_Perl2 w/mod_proxy/mod_rewrite

2005-09-30 Thread Philip M. Gollucci
Philip M. Gollucci wrote: [error] slurp_filename('/opt/apache2/perl/script.pl?a=a&b=b&c=c') / opening: (2) No such file or directory at /opt/perl/lib/site_perl/5.8.7/i686-linux/ModPerl/RegistryCooker.pm line 540 This works for me if I am understanding you correctly. Okay, so

Re: Mod_Perl2 w/mod_proxy/mod_rewrite

2005-09-15 Thread Philip M. Gollucci
Jonathan Steffan wrote: 1. Concept: 2. 3. GET http://domain.tld/search/a/b/c (via :80) 4. rewrite search/a/b/c -> http://localhost:8080/perl/script?a=a&b=b&c=c [P] (via .htaccess RewriteRule) [OK] (localhost:8080 is another apache w/mod_perl) 5. proxy

Mod_Perl2 w/mod_proxy/mod_rewrite

2005-09-14 Thread Jonathan Steffan
1. Concept: 2. 3. GET http://domain.tld/search/a/b/c (via :80) 4. rewrite search/a/b/c -> http://localhost:8080/perl/script?a=a&b=b&c=c [P] (via .htaccess RewriteRule) [OK] (localhost:8080 is another apache w/mod_perl) 5. proxy: http://localhost:8080

Re: mod_perl, mod_proxy, mod_rewrite

2005-09-14 Thread Philip M. Gollucci
Jonathan Steffan wrote: slurp_filename('/opt/apache2/perl/script?a=a&b=b&c=c') / opening: (2) No such file or directory at /opt/perl/lib/site_perl/5.8.7/i686-linux/ModPerl/RegistryCooker.pm line 540 That's because this should be > slurp_filename('/opt/apache2/perl/script') / opening: (2) No -

mod_perl, mod_proxy, mod_rewrite

2005-09-14 Thread Jonathan Steffan
Hello again all, I have a static frontend apache (2.0.40 mp1.99) and a backend apache (2.0.54 mp2) that run my searches. I am mod_rewriting the frontend apache to take /search/a/b/c and rewrite it to the backend running on host:81. The backend is where the perl code is. So search/a/b/c -> htt

setting REMOTE_USER with Apache::AuthCookie for use on a 2nd server through mod_rewrite

2005-05-19 Thread Rafael Caceres
Hi, I need to place an application which requires REMOTE_USER to be set in an external non mod_perl enabled Apache reverse proxy that is called by an internal mod_perl enabled Apache through mod_rewrite. The idea is that a directory in the internal, mod_perl enabled server would have the

Re: [Semi-OT] mod_rewrite and $r->parsed_uri

2005-04-08 Thread Geoffrey Young
>>I don't think anyone is supposed to (or traditionally does) mess with >>$r->parsed_uri. it's usually $r->uri and $r->filename. > > > Well, in the mod_perl Cookbook you (or one of your co-authors) mess with > $r->parsed_uri (eg Recipe 5.3 'Altering the Request URI' page 160ff) yes... but th

Re: [Semi-OT] mod_rewrite and $r->parsed_uri

2005-04-08 Thread Thomas Klausner
Hi! On Fri, Apr 08, 2005 at 09:25:30AM -0400, Geoffrey Young wrote: > > Is it possible to somehow get to the URI as it looks like after beeing > > transformed by mod_rewrite? > > don't you just want $r->uri? Yes. Thanks. > I don't think anyone is supposed to

[OT] Thoughts (Re: [Semi-OT] mod_rewrite and $r->parsed_uri)

2005-04-08 Thread Joe Schaefer
Geoffrey Young <[EMAIL PROTECTED]> writes: > if that doesn't work we can try another thought pattern :) Or just buy a new video card- sometimes it's hard to tell the difference ;-) -- Joe Schaefer

Re: [Semi-OT] mod_rewrite and $r->parsed_uri

2005-04-08 Thread Geoffrey Young
Thomas Klausner wrote: > Hi! > > Is it possible to somehow get to the URI as it looks like after beeing > transformed by mod_rewrite? don't you just want $r->uri? > > What I'm trying to do is: > > In a DB I have 'pseudo-files' with a column

[Semi-OT] mod_rewrite and $r->parsed_uri

2005-04-08 Thread Thomas Klausner
Hi! Is it possible to somehow get to the URI as it looks like after beeing transformed by mod_rewrite? What I'm trying to do is: In a DB I have 'pseudo-files' with a column named 'path' and titles and bodies in several languages. (title_de, title_en, etc) Values for &#

Fwd: A question about mod_ssl with mod_rewrite and .htaccess files

2005-02-18 Thread Boysenberry Payne
about mod_ssl with mod_rewrite and .htaccess files Reply-To: [EMAIL PROTECTED] I couple of years ago I ran into a situation where I tried using mod_ssl via https and mod_rewrite via .htaccess files. It didn't work. My host at the time said the only way to get them to work together was by

Re: Sanity check on mod_rewrite and POST data [slightly OT]

2005-02-04 Thread ___cliff rayman___
Martin Moss wrote: However after the rewrite, the POST data is lost. Can anybody throw any light on this? the rewrite rule is this:- RewriteRule ^(.*)$ http://%{HTTP_HOST}$1 [R] Not sure what you are trying to do here. You are making a non-ssl request back to the exact same server, with the exact

Sanity check on mod_rewrite and POST data [slightly OT]

2005-02-04 Thread Martin Moss
All, Can I get a sanity check on this:- I have a form which POSTs to https://server/url That https servers uses mod_rewrite to forward the request onto another server internally as http://server/url However after the rewrite, the POST data is lost. Can anybody throw any light on this? the

Re: OT: mod_rewrite question

2004-06-21 Thread Randal L. Schwartz
s Thomas> http://somehost/somedir/123.html Thomas> to Thomas> http://somehost/somedir/view?id=123 Since this is a mod_perl mailing list, the way to bring it back on-topic is to CHUCK MOD_REWRITE if you have mod_perl available. A PerlTransHandler is far more flexible than

Re: OT: mod_rewrite question

2004-06-21 Thread Vadim
host/somedir/view?id=123 > > I tried: > > RewriteRule ^/(.*)/(.*).html$/$1/view?id=$2 > > which nearly works, as it says in the logs that: > rewrite /stepsdok/28.html -> /stepsdok/view?id=28 > > But mod_rewrite than prepends DocumentRoot > > If I set Rew

OT: mod_rewrite question

2004-06-21 Thread Thomas Klausner
$/$1/view?id=$2 which nearly works, as it says in the logs that: rewrite /stepsdok/28.html -> /stepsdok/view?id=28 But mod_rewrite than prepends DocumentRoot If I set RewriteBase to / the Rule doesn't match anymore, even if I alter the Rule: RewriteBase / RewriteRule ^(.*)/(

Re: Different results using mod_proxy or mod_rewrite vs direct server - followup

2004-01-16 Thread Rafael Caceres
; I've attempted using mod_proxy: > > > > ServerName insidelan.server.com > > ProxyPass / http://insidelan.server.com/ > > ProxyPassReverse / http://insidelan.server.com/ > > > > > > and using mod_rewrite: > > > > ServerName insidelan

Re: Different results using mod_proxy or mod_rewrite vs direct server

2004-01-12 Thread Stas Bekman
ass / http://insidelan.server.com/ ProxyPassReverse / http://insidelan.server.com/ and using mod_rewrite: ServerName insidelan.server.com RewriteRule /(.*)$ http://insidelan.server.com/$1 [P] Don't you miss: ProxyPassReverse / http://insidelan.server.com/ in the mod_rewrite case if you want it to b

Different results using mod_proxy or mod_rewrite vs direct server

2004-01-07 Thread Rafael Caceres
server.com/ ProxyPassReverse / http://insidelan.server.com/ and using mod_rewrite: ServerName insidelan.server.com RewriteRule /(.*)$ http://insidelan.server.com/$1 [P] Everything seems to work fine (including the HTTPS proxy, cookies, etc., etc.), except that I'm getting: Proxy Error The proxy ser