You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by li...@on-x.com on 2005/06/15 16:40:03 UTC

[users@httpd] mod_proxy over mod_rewrite precedence

Hi all,

following "apache as reverse-proxy : forwarding SSL environment 
variables", I just set up my proxy as below :

<VirtualHost A.B.C.D:443>
     ServerName www.domain.tld

RewriteEngine On
RewriteLogLevel 9
RewriteLog /tmp/rewrite.log

RewriteCond %{QUERY_STRING} subjectdn=
RewriteRule .* - [F]

RewriteMap escaper int:escape

RewriteCond %{SSL_CLIENT_S_DN} !^$
RewriteRule ^/(.*) 
http://www.domain.tld/$1?subjectdn=${escaper:%{SSL_CLIENT_S_DN}} [QSA,P]

     ProxyRequests Off
     ProxyPass / http://www.domain.tld/
     ProxyPassReverse / https://www.domain.tld/

# ssl config wrapped

</VirtualHost>
</IfDefine>

RewriteLog is empty even after many requests
I hopped at least to see if RewriteCond match or not

this made me to think that the request doesn't pass to mod_rewrite.
Of course this module is enabled.

Any idea ?

Thanks in advance.

  -G.-

---------------------------------------------------------------------
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


Re: [users@httpd] mod_proxy over mod_rewrite precedence

Posted by li...@on-x.com.
> Delete the ProxyPass / ... line.  The RewriteRule with the [P] flag is
> doing that for you already.

Thanks !

  -G.-

---------------------------------------------------------------------
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


Re: [users@httpd] mod_proxy over mod_rewrite precedence

Posted by Joshua Slive <js...@gmail.com>.
On 6/15/05, lists@on-x.com <li...@on-x.com> wrote:
> RewriteRule ^/(.*)
> http://www.domain.tld/$1?subjectdn=${escaper:%{SSL_CLIENT_S_DN}} [QSA,P]
> 
>      ProxyRequests Off
>      ProxyPass / http://www.domain.tld/
>      ProxyPassReverse / https://www.domain.tld/

> RewriteLog is empty even after many requests
> I hopped at least to see if RewriteCond match or not
> 
> this made me to think that the request doesn't pass to mod_rewrite.
> Of course this module is enabled.
> 
> Any idea ?

Delete the ProxyPass / ... line.  The RewriteRule with the [P] flag is
doing that for you already.

Joshua.

---------------------------------------------------------------------
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


[users@httpd] Does Apache Work on VxWorks??? AnyIdeas

Posted by RAJESH SEGU <ra...@yahoo.com>.
Hai Guys!

Does anybody have idea of Apache Working in VxWorks or
any special compatible version.

Thanks In Advance!

segu rajesh.

--- lists@on-x.com wrote:

> Hi all,
> 
> following "apache as reverse-proxy : forwarding SSL
> environment 
> variables", I just set up my proxy as below :
> 
> <VirtualHost A.B.C.D:443>
>      ServerName www.domain.tld
> 
> RewriteEngine On
> RewriteLogLevel 9
> RewriteLog /tmp/rewrite.log
> 
> RewriteCond %{QUERY_STRING} subjectdn=
> RewriteRule .* - [F]
> 
> RewriteMap escaper int:escape
> 
> RewriteCond %{SSL_CLIENT_S_DN} !^$
> RewriteRule ^/(.*) 
>
http://www.domain.tld/$1?subjectdn=${escaper:%{SSL_CLIENT_S_DN}}
> [QSA,P]
> 
>      ProxyRequests Off
>      ProxyPass / http://www.domain.tld/
>      ProxyPassReverse / https://www.domain.tld/
> 
> # ssl config wrapped
> 
> </VirtualHost>
> </IfDefine>
> 
> RewriteLog is empty even after many requests
> I hopped at least to see if RewriteCond match or not
> 
> this made me to think that the request doesn't pass
> to mod_rewrite.
> Of course this module is enabled.
> 
> Any idea ?
> 
> Thanks in advance.
> 
>   -G.-
> 
>
---------------------------------------------------------------------
> 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
> 
> 


Fresher Jobs: http://groups.yahoo.com/groups/jobs_mania


		
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

---------------------------------------------------------------------
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