Re: [EMAIL PROTECTED] Rewrite rule preventing directory authentication

2008-10-22 Thread Eric Covener
On Wed, Oct 22, 2008 at 12:57 PM, Mário Gamito [EMAIL PROTECTED] wrote: Hi, I have this site that has in its root directory a .htaccess file with the following rewritings: IfModule mod_rewrite.c RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond

Re: [EMAIL PROTECTED] Rewrite rule preventing directory authentication

2008-10-22 Thread Mário Gamito
That would break the software :( On Wed, Oct 22, 2008 at 8:27 PM, Eric Covener [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 12:57 PM, Mário Gamito [EMAIL PROTECTED] wrote: Hi, I have this site that has in its root directory a .htaccess file with the following rewritings: IfModule

Re: [EMAIL PROTECTED] Rewrite rule preventing directory authentication

2008-10-22 Thread Eric Covener
On Wed, Oct 22, 2008 at 3:31 PM, Mário Gamito [EMAIL PROTECTED] wrote: That would break the software :( How about a RewriteCond looking at %{REQUEST_URI} in the docroot that protects the rule from running on whatever in that subdir you don't want touched? I can't say I fully understand what

Re: [EMAIL PROTECTED] Rewrite rule with F5 redirect to https

2008-10-03 Thread Yoom Nguyen
the /srv/www/maintenace in the AppAmor everything work fine. Thanks again for the respond. Best Regards, Y - Original Message - From: Jeff McAdams [EMAIL PROTECTED] To: users@httpd.apache.org Sent: Thursday, October 2, 2008 1:55:38 PM (GMT-0500) America/New_York Subject: Re: [EMAIL PROTECTED

Re: [EMAIL PROTECTED] Rewrite rule with F5 redirect to https

2008-10-02 Thread Justin Pasher
Yoom Nguyen wrote: I have this rewrite rule implemented and it will work fine if I access to Apache web server directly. But, if the traffic route to a load balancer (F5) then to the Apache server it won't work. The browser will trying to open the maintenance.html page and nothing will

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread Eric Covener
On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen [EMAIL PROTECTED] wrote: DocumentRoot /srv/www/maintenance/ RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* -[F] RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L] Add a / before maintenance.html, and Protect the

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread Agus
2008/9/17 Eric Covener [EMAIL PROTECTED]: On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen [EMAIL PROTECTED] wrote: DocumentRoot /srv/www/maintenance/ RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* -[F] RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L] Add a

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread Yoom Nguyen
Eric, That was it, I need that RewriteCond. Thank you so much for your help. Y - Original Message - From: Eric Covener [EMAIL PROTECTED] To: users@httpd.apache.org Sent: Wednesday, September 17, 2008 3:40:15 PM (GMT-0500) America/New_York Subject: Re: [EMAIL PROTECTED] Rewrite Rule

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread André Warnier
Eric Covener wrote: On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen [EMAIL PROTECTED] wrote: DocumentRoot /srv/www/maintenance/ RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* -[F] RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L] Add a / before

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread Eric Covener
On Wed, Sep 17, 2008 at 4:02 PM, André Warnier [EMAIL PROTECTED] wrote: (you can do the latter via your regex, but it's usually simpler to guard it the other way) RewriteRule !^/maintenance\.html$ /maintenance.html [R=302,NC,L] It quickly gets unamangeable as you need to add captures

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread André Warnier
Eric Covener wrote: On Wed, Sep 17, 2008 at 4:02 PM, André Warnier [EMAIL PROTECTED] wrote: (you can do the latter via your regex, but it's usually simpler to guard it the other way) RewriteRule !^/maintenance\.html$ /maintenance.html [R=302,NC,L] It quickly gets unamangeable as you need

Re: [EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread Eric Covener
On Wed, Sep 17, 2008 at 4:58 PM, André Warnier [EMAIL PROTECTED] wrote: Eric Covener wrote: On Wed, Sep 17, 2008 at 4:02 PM, André Warnier [EMAIL PROTECTED] wrote: (you can do the latter via your regex, but it's usually simpler to guard it the other way) RewriteRule !^/maintenance\.html$

Re: [EMAIL PROTECTED] rewrite rule to change spaces to underscores

2008-06-12 Thread Krist van Besien
On Wed, Jun 11, 2008 at 21:23, [EMAIL PROTECTED] wrote: Is there a simple rewrite rule to change all space (and/or %20's) in a URL to underscores (_) ?? RewriteRule ^(.*)\s(.*)$ $1_$2 [N] This rule will (if present) replace on space with an underscore, after which ruler processing is

Re: [EMAIL PROTECTED] Rewrite Rule Help

2008-05-22 Thread Scott Moseman
Could yo ube more specific? Is the web application configured with / as base URL or with /portal/ as base URL? Do you want to hide the /portal path for your users, of for the web application? Maybe my proxy configuration will give you more of an idea. The site has a custom port and /portal

Re: [EMAIL PROTECTED] Rewrite Rule Help

2008-05-22 Thread Krist van Besien
On Thu, May 22, 2008 at 3:35 PM, Scott Moseman [EMAIL PROTECTED] wrote: Could yo ube more specific? Is the web application configured with / as base URL or with /portal/ as base URL? Do you want to hide the /portal path for your users, of for the web application? Maybe my proxy configuration

Re: [EMAIL PROTECTED] Rewrite Rule Help

2008-05-21 Thread Krist van Besien
On Tue, May 20, 2008 at 10:56 PM, Scott Moseman [EMAIL PROTECTED] wrote: I'm trying to hide the /portal/ path for a website behind the scenes using mod_proxy. I had to use the RewriteEngine because the website (not under rmy control) uses some absolute URL references in the code, and if I

Re: [EMAIL PROTECTED] ReWrite Rule

2007-08-09 Thread Vincent Bray
On 09/08/07, Lalit Kapoor [EMAIL PROTECTED] wrote: Hello, I am new to apache community. Welcome :-) I need to put rewrite rule in such a way that http://community.brand.com should end up at http://community.brand.com/base/index.jspa. This rather depends on what you mean by 'end up at'. If

Re: [EMAIL PROTECTED] ReWrite Rule

2007-08-09 Thread Lalit Kapoor
Thanks. Will try and share results. I am using main server and will be putting rules directly in virtual host block. On 8/9/07, Vincent Bray [EMAIL PROTECTED] wrote: On 09/08/07, Lalit Kapoor [EMAIL PROTECTED] wrote: Hello, I am new to apache community. Welcome :-) I need to put

Re: [EMAIL PROTECTED] Rewrite Rule using HTTP Header information

2007-07-11 Thread Paul Kuykendall
On 7/10/07, Vincent Bray [EMAIL PROTECTED] wrote: On 11/07/07, Paul Kuykendall [EMAIL PROTECTED] wrote: I am trying to get a rewrite rule working that will take the value from an HTTP header and use the value to create a new target destination for the HTTP request. An example of what I'm

Re: [EMAIL PROTECTED] Rewrite Rule using HTTP Header information

2007-07-10 Thread Vincent Bray
On 11/07/07, Paul Kuykendall [EMAIL PROTECTED] wrote: I am trying to get a rewrite rule working that will take the value from an HTTP header and use the value to create a new target destination for the HTTP request. An example of what I'm trying to do follows: Original HTTP request being sent

Re: [EMAIL PROTECTED] ReWrite Rule help required

2007-06-20 Thread GKapitany
Hi, If your https host is not accessible directly, then do you have a virtualhost seted up listening on 443? Gabriel Lalit Kapoor [EMAIL

Re: [EMAIL PROTECTED] ReWrite Rule help required

2007-06-20 Thread GKapitany
Subject Re: [EMAIL PROTECTED] ReWrite Rule help Please respond to required [EMAIL PROTECTED

Re: [EMAIL PROTECTED] rewrite rule problem

2007-01-31 Thread Krist van Besien
On 1/31/07, Kailash Vyas [EMAIL PROTECTED] wrote: Hi I need some help regarding rewrite rule. for example http://example.com/kailash/test should redirect to http://example.com/test?name=kailash I have written this rule for redirection RewriteRule ^([^/]+)/([^/]+)/?$

Re: [EMAIL PROTECTED] rewrite rule

2006-06-06 Thread Robert Ionescu
Axel-Stéphane SMORGRAV wrote: Could you give some explanations wrt. your RewriteCond ? I have never seen this kind of expressions before. Yes. \1 is a regEx internal back reference containing everything matched in the first group (/test/.+) So assuming a request of /test/index.html (=value

Re: [EMAIL PROTECTED] rewrite rule

2006-05-29 Thread Mariusz Handke
This wouldn't work (RewriteCond) since $2 and $3 are not known at this stage of rewriting process yet, but I'm still working on it Krist van Besien wrote: On 5/26/06, Mariusz Handke [EMAIL PROTECTED] wrote: Thanks for suggestion, that's what I will do, but I still think there should be other

RE: [EMAIL PROTECTED] rewrite rule

2006-05-29 Thread Axel-Stéphane SMORGRAV
: Mariusz Handke [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 12:37 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] rewrite rule This wouldn't work (RewriteCond) since $2 and $3 are not known at this stage of rewriting process yet, but I'm still working on it Krist van Besien

Re: [EMAIL PROTECTED] rewrite rule

2006-05-29 Thread Robert Ionescu
Mariusz Handke wrote: This wouldn't work (RewriteCond) since $2 and $3 are not known at this stage of rewriting process yet, but I'm still working on it - That won't work. You can't use back references from mod_rewrite in a RegEx. - They're known, as Axel-Stéphane already said. - You must

RE: [EMAIL PROTECTED] rewrite rule

2006-05-29 Thread Axel-Stéphane SMORGRAV
Could you give some explanations wrt. your RewriteCond ? I have never seen this kind of expressions before. -ascs -Original Message- From: Robert Ionescu [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 7:55 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] rewrite rule

Re: [EMAIL PROTECTED] rewrite rule

2006-05-25 Thread Krist van Besien
On 5/25/06, Mariusz Handke [EMAIL PROTECTED] wrote: Thanks, I modified your proposition as follows: Location /test RewriteEngine On RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$ /test-redir.php?page=/test/$2$3 [L] /Location Hmmm. This rewrites

Re: [EMAIL PROTECTED] rewrite rule

2006-05-25 Thread Mariusz Handke
Thanks for suggestion, that's what I will do, but I still think there should be other way to do it, within apache scope. Krist van Besien wrote: You need to do this differently. The way I would do this is change my php script so it includes the different pages in one page, in stead of a

Re: [EMAIL PROTECTED] rewrite rule

2006-05-24 Thread Mariusz Handke
Thanks, I modified your proposition as follows: Location /test RewriteEngine On RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$ /test-redir.php?page=/test/$2$3 [L] /Location and rule works ok, but produced result (two frames: top one containing original file,

Re: [EMAIL PROTECTED] rewrite rule

2006-05-23 Thread Krist van Besien
On 5/22/06, Mariusz Handke [EMAIL PROTECTED] wrote: Hi, Can anyone help me to create, or explain how to get around with rewrite rules, please. The thing to do is: in: http://host/dir/file out: http://host/script.php?p=/dir/file RewriteRule ^(.*)$/script.php?p=$1 Krist -- [EMAIL

Re: [EMAIL PROTECTED] rewrite rule

2006-05-23 Thread Om
Hi, I am also new to this. Can you check the following rule RewriteEngine On RewriteRule ^/(.*) http://host/script.php?p=$1 I think, what ever is there after the hostname will be $1 for ex: http://abcd.com/pets $1 will be pets. I am also looking at URL rewriting. Please check that and let me

Re: [EMAIL PROTECTED] Rewrite rule with Servlet Issue

2006-02-09 Thread Joshua Slive
On 2/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: RewriteRule ^/cgi-bin/java\-rmi\.cgi$ http://auohsepcb11.oracleoutsourcing.com:10280/servlet/ServletHandler [P] /VirtualHost But the server response is not returned to the initial client. which calls

Re: [EMAIL PROTECTED] Rewrite rule with Servlet Issue

2006-02-09 Thread stepabest
Hi, Thank your for your response. Here is the source where I get those directives: http://www.geocities.com/dmh2000/ApacheTomcatRMI.htm What I try to achieve is to implement HTTP tunneling for RMI. I implemented it successfully on my laptop locally. I have Apache2/Tomcat and latest jdk. But When

RE: [EMAIL PROTECTED] rewrite rule

2006-01-25 Thread Boyle Owen
-Original Message- From: Kailash Vyas [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 25. Januar 2006 12:08 To: users@httpd.apache.org Subject: [EMAIL PROTECTED] rewrite rule hi all, I am working on rewrite rule for a website and need some help on it. I need all the requests for php

RE: [EMAIL PROTECTED] rewrite rule

2006-01-25 Thread Boyle Owen
-Original Message- From: Kailash Vyas [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 25. Januar 2006 14:17 To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] rewrite rule Hi RewriteRule ^property/(.*)$http://example.com/index/$1 I have written this rule

RE: [EMAIL PROTECTED] Rewrite-rule with other variables

2005-10-10 Thread Axel-Stéphane SMORGRAV
Yes there is a way. The Apache manual pages are pretty explicit about it. This has also been a recurrent question on this mailing list. I suggest that you do a search on some chosen keywords. Among others posts, you will find this one: http://www.apache-httpd.com/msg/19283.html BR -ascs