httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Schevingt" <l...@nightrain.com>
Subject Re: [users@httpd] Help me please .. Mod_rewrite
Date Mon, 02 Feb 2004 12:12:39 GMT
Hi

Thanks for your answer ... i have put log file and level 9 debug, delete the
L.
Yes i load mod_proxy.

This is the logs :


81.166.22.29 - - [02/fév/2004:13:04:35 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (2) init rewrite
engine with requested uri /clients/www.toto.com
81.166.22.29 - - [02/fév/2004:13:04:35 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (3) applying pattern
'^/clients/(.+)$' to uri '/clients/www.toto.com'
81.166.22.29 - - [02/fév/2004:13:04:35 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (2) rewrite
/clients/www.toto.com ->
http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=www.toto.com
81.166.22.29 - - [02/fév/2004:13:04:35 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (3) split
uri=http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=www.toto.com ->
uri=http://www-srv1.nightrain.com/cgi-bin/awstats.pl,
args=config=www.toto.com
81.166.22.29 - - [02/fév/2004:13:04:35 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (2) forcing
proxy-throughput with http://www-srv1.nightrain.com/cgi-bin/awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:35 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (1) go-ahead with
proxy request proxy:http://www-srv1.nightrain.com/cgi-bin/awstats.pl [OK]
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fcf510/initial] (2) init rewrite
engine with requested uri /clients/awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fcf510/initial] (3) applying pattern
'^/clients/(.+)$' to uri '/clients/awstats.pl'
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fcf510/initial] (2) rewrite
/clients/awstats.pl ->
http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fcf510/initial] (3) split
uri=http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=awstats.pl ->
uri=http://www-srv1.nightrain.com/cgi-bin/awstats.pl, args=config=awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fcf510/initial] (2) forcing
proxy-throughput with http://www-srv1.nightrain.com/cgi-bin/awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fcf510/initial] (1) go-ahead with
proxy request proxy:http://www-srv1.nightrain.com/cgi-bin/awstats.pl [OK]
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (2) init rewrite
engine with requested uri /clients/awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (3) applying pattern
'^/clients/(.+)$' to uri '/clients/awstats.pl'
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (2) rewrite
/clients/awstats.pl ->
http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (3) split
uri=http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=awstats.pl ->
uri=http://www-srv1.nightrain.com/cgi-bin/awstats.pl, args=config=awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (2) forcing
proxy-throughput with http://www-srv1.nightrain.com/cgi-bin/awstats.pl
81.166.22.29 - - [02/fév/2004:13:04:36 +0100]
[stats.nightrain.com/sid#8120ae0][rid#8fc74f0/initial] (1) go-ahead with
proxy request proxy:http://www-srv1.nightrain.com/cgi-bin/awstats.pl [OK]



I see that hi start good rewrite :

http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=www.toto.com

But after, we have :

http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=awstats.pl

I don't know why he change www.toto.com by awstats.pl ... a idea ?


what is my problems ? this is the split ?

bye





----- Original Message ----- 
From: "Brian Dessent" <brian@dessent.net>
To: <users@httpd.apache.org>
Sent: Monday, February 02, 2004 11:34 AM
Subject: Re: [users@httpd] Help me please .. Mod_rewrite


> Jerome Schevingt wrote:
>
> > Now, i want the same action but without change URL. I want use Proxy.
> >
> > I put into my VirtualHost:
> >
> >     RewriteEngine On
> >     RewriteRule ^/clients/(.+)$
> > http://www-srv1.nightrain.com/cgi-bin/awstats.pl?config=$1 [P,L]
>
> You don't need 'L' at the end there, it doesn't make any sense when used
> with 'P'.
>
> > When the user put the first url, she don't change (good ..) but the $1
don't
> > work ...
> >
> > My question:
> >     1- He have a debug mode in mod_rewrite ?? for know what is the
problems
>
> Wouldn't it be great if there was a debugging logfile that you could
> enable, and a manual to explain how to turn it on?  :-)
> http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteLog
>
> >     2- Can i use the good config ?
>
> Explain in more detail what happens or how it fails.  Your config looks
> fine to me.  Make sure you've loaded mod_proxy.
>
> Brian
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message