Re: [us...@httpd] handling parameter in query_string with mod_rewrite

2010-02-16 Thread Igor Cicimov
Sorry this should have been like this actually RewriteEngine On RewriteCond %{QUERY_STRING} ^filename=(myfile.txt)$ RewriteRule .* - [E=FILENAME:%1] to set the FILENAME variable to myfile.txt value. Igor On Wed, Feb 17, 2010 at 10:30 AM, Igor Cicimov wrote: > RewriteRule doesn't work with

Re: [us...@httpd] handling parameter in query_string with mod_rewrite

2010-02-16 Thread Igor Cicimov
RewriteRule doesn't work with the query part or the URI thus will not work in your case. You need to try RewriteCond directive combined with RewriteRule. Something like this maybe? RewriteEngine On RewriteCond %{QUERY_STRING} ^(filename=myfile.txt)$ RewriteRule .* - [E=FILENAME:%1] Header set "

[us...@httpd] handling parameter in query_string with mod_rewrite

2010-02-16 Thread Stefano Nichele
Hi All, I would need some help with mod_rewrite :-( . What I would need is to add an header to the response if the request contains a URL parameter and the value of that parameter should be used in that header. Just to clarify, if the url is: /download/files/1ytreefecsw?filename=myfile.txt

Re: [us...@httpd] can't start apache

2010-02-16 Thread Toomas Aas
On 16.02.2010 19:25, Matthew Smith wrote: I don't think it is the router. If I set the root to a local directory, I can get apache to start and serve pages fine. It fails if I use a mapped drive. I don't know much about running Apache on Windows, but I wonder what user Apache is being run a

Re: [us...@httpd] can't start apache

2010-02-16 Thread Matthew Smith
I don't think it is the router. If I set the root to a local directory, I can get apache to start and serve pages fine. It fails if I use a mapped drive. The mapped drive has permissions set to everyone full control. A side question, any way I can add a windows xp account to a windows 7 machine

Re: [us...@httpd] can't start apache

2010-02-16 Thread Matthew Smith
The server is windows xp pro. On Mon, Feb 15, 2010 at 2:58 PM, Daniel Reinhardt wrote: > > -- > From: "Matthew Smith" > Sent: 15 February, 2010 18:42 > To: > Subject: Re: [us...@httpd] can't start apache > > > Ok, I figured it out. I was using a

RE: [us...@httpd] SSL redirect browsers if weak encryption to a warning page

2010-02-16 Thread Renato Oliveira
Eric, Thank you for the reply? I am sorry I don't understand it, sorry. I don't want to protect the directory, I want to have a redirect of the 403 error to a warning page. Do you mean for me to remove the directive? Thank you very much Best regards Renato Renato Oliveira Systems Administ

[us...@httpd] URL Rewrite goes into infinite loop

2010-02-16 Thread su2
Hi, I have following rule RewriteMap urlspm txt:/usr/local/etc/manual_redirects.txt RewriteCond ${urlspm:%{REQUEST_URI}} ^(/.*)$ RewriteRule ^.*$ %1 [P,L] and in manual_redir

Re: [us...@httpd] SSL redirect browsers if weak encryption to a warning page

2010-02-16 Thread Eric Covener
n Tue, Feb 16, 2010 at 9:50 AM, Renato Oliveira wrote: > Dear all, > > > > I am using Apache Server version: Apache/2.2.3 on Centos 5.4 (Test > environment) > > On Production Redhat 4 Server version: Apache/2.0.52 > > > > I have been looking for a way of: > > 1 – Prevent browsers with lower encryp

[us...@httpd] SSL redirect browsers if weak encryption to a warning page

2010-02-16 Thread Renato Oliveira
Dear all, I am using Apache Server version: Apache/2.2.3 on Centos 5.4 (Test environment) On Production Redhat 4 Server version: Apache/2.0.52 I have been looking for a way of: 1 - Prevent browsers with lower encryption to use my site, which I can do with the two directives below SSLProtocol all

Re: [us...@httpd] How to set up a reverse proxy for login.facebook.com

2010-02-16 Thread Matus UHLAR - fantomas
> > On 07.02.10 01:09, fulan Peng wrote: > >> I am trying to set up a reverse proxy for facebook by using Apache > >> mod_proxy and mod_proxy_html. > On Sun, Feb 7, 2010 at 9:54 PM, Matus UHLAR - fantomas > wrote: > > reverse proxy for facebook? Are you running facebook servers so you can run > >

[us...@httpd] Passing SSL client certificates via mod_proxy_ajp to Tomcat ...

2010-02-16 Thread Chris Jölly
Hello, is there a possibility to pass a SSL client certificate via mod_proxy_ajp to Tomcat, ideally the same way mod_jk did so Tomcat is able to extract the certificate and add it as attribute to the request? Thanks, Chris