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
;
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
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
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
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
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
> 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
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
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
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
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
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
/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
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/
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
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
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
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
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
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
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
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
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
-
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
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
>>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
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
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
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
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
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
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
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
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
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
$/$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 ^(.*)/(
; 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
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
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
39 matches
Mail list logo