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

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: > > > RewriteEngine On > RewriteBase / > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d >

[EMAIL PROTECTED] Rewrite rule preventing directory authentication

2008-10-22 Thread Mário Gamito
Hi, I have this site that has in its root directory a .htaccess file with the following rewritings: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] SecFilterEngine off Now, I want to password protect a sudirect

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

2008-10-03 Thread Yoom Nguyen
ject: Re: [EMAIL PROTECTED] Rewrite rule with F5 redirect to https 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'

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

2008-10-02 Thread Jeff McAdams
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

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 displa

[EMAIL PROTECTED] Rewrite rule with F5 redirect to https

2008-10-02 Thread Yoom Nguyen
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 display and it won't give

Re: [EMAIL PROTECTED] Rewrite rule - Check by file exist...

2008-10-02 Thread Krist van Besien
On Thu, Oct 2, 2008 at 4:27 AM, howard chen <[EMAIL PROTECTED]> wrote: > Hello, > > Is it possible to do the following, just using sort of rewrite rules > in httpd.conf, > > E.g.http://www.example.com/foo > > ALGO: > > If a file foo.html exist >rewrite to target.html > Else >404

[EMAIL PROTECTED] Rewrite rule - Check by file exist...

2008-10-01 Thread howard chen
Hello, Is it possible to do the following, just using sort of rewrite rules in httpd.conf, E.g.http://www.example.com/foo ALGO: If a file foo.html exist rewrite to target.html Else 404 not found The foo is just a dynamic variables... Thanks.

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

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

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 maintenance.htm

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 PR

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

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 Pro

[EMAIL PROTECTED] Rewrite Rule help

2008-09-17 Thread Yoom Nguyen
I am using Apache2 on SuSe 10 ES My redirect rule get my webserver go into a loop. I need to bring a production server down for a maintenance.  So when this happen I want the apache server to redirect everything from this particular production domain to a new DocumentRoot to display

[EMAIL PROTECTED] Rewrite rule for URL containing spaces

2008-09-04 Thread ViNiL
Hello, in Apache 1.3, we use rewrite rules like this one: RewriteRule ^/website1(.*)$ /portal/page/portal/website1/$1 [PT] The problem is, it does not work when there is more than one space in URL (fe.: website1/subpage 1/subpage 2). The result is http error 413. I guess, it is related to PT fl

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 i

[EMAIL PROTECTED] rewrite rule to change spaces to underscores

2008-06-11 Thread dan_mitton
Is there a simple rewrite rule to change all space (and/or %20's) in a URL to underscores (_) ?? Thanks, Dan - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.ht

[EMAIL PROTECTED] Rewrite rule security question

2008-05-23 Thread Lars
Hello list! I am working on a login system and I'm using htaccess for access restrictions. I have a script that generates the htaccess file and I think it is pretty secure but I want to have yours opinions (so dont mind the generation of the file itself, only the rewrite rules). I use ip restrict

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 con

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

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

[EMAIL PROTECTED] Rewrite Rule Help

2008-05-20 Thread Scott Moseman
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 don't remove the /portal/ reference it obviously breaks the site. RewriteEngine

[EMAIL PROTECTED] Rewrite rule to keep old url after changing username

2008-02-11 Thread Jan F Steinbrener
Hi, during my recent re-install of our server (it is running Apache 2.2) i changed my username from old_uname to new_uname. I would like that my webaddress is still accessible under the old address http://host/~old_uname Looking through the docs I decided to go with the rewrite routine. I

[EMAIL PROTECTED] Rewrite rule security question

2008-01-06 Thread Lars
Hello list! I am working on a admin site and I'm using htaccess for access restrictions. I have a script that generates the htaccess file and I think it is pretty secure but I want to have yours opinions.. I use ip restrictions, and cookie restrictions. I use standard php session for generating a

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

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

[EMAIL PROTECTED] ReWrite Rule

2007-08-08 Thread Lalit Kapoor
Hello, I am new to apache community. I need to put rewrite rule in such a way that http://community.brand.comshould end up at http://community.brand.com/base/index.jspa. Please see if you have any such rule available or please provide some pointer for the same. Thanks, Lalit Kapoor

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

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

[EMAIL PROTECTED] Rewrite Rule using HTTP Header information

2007-07-10 Thread Paul Kuykendall
Hi, 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 to http://myhost.domain/ containing the header MyRo

Re: [EMAIL PROTECTED] ReWrite Rule help required

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

Re: [EMAIL PROTECTED] ReWrite Rule help required

2007-06-20 Thread Lalit Kapoor
cc PM Subject [EMAIL PROTECTED] ReWrite Rule help Please respond to required [EMAIL PROTECTED] e.org Hi, We hav

Re: [EMAIL PROTECTED] ReWrite Rule help required

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

[EMAIL PROTECTED] ReWrite Rule help required

2007-06-20 Thread Lalit Kapoor
Hi, We have written Rewrite Rule to direct HTTP traffic to HTTPS page. It works as : http://sitename.com ---> https://sitename.com + CA siteminder login ->http://sitename.com ( after authentication ) Here is the rule: **# URL rewrite to redirect access to /entrycheck/login.html

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 ^([^/]+)/([^/]+)/?$http://example.com/

[EMAIL PROTECTED] rewrite rule problem

2007-01-31 Thread Kailash Vyas
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 ^([^/]+)/([^/]+)/?$http://example.com/$2?name=$1 This works fine but if the url is http://

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 o

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

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

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 Krist van Besien
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 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 incl

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 frames

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: RewriteEngine On RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$ /test-redir.php?page=/test/$2$3 [L] Hmmm. This rewrites /test/index.html to test-redir.php?p

Re: [EMAIL PROTECTED] rewrite rule

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

Re: [EMAIL PROTECTED] rewrite rule

2006-05-23 Thread Krist van Besien
On 5/23/06, Om <[EMAIL PROTECTED]> wrote: 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. correct. Rewrite rule

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 k

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 P

[EMAIL PROTECTED] rewrite rule

2006-05-22 Thread Mariusz Handke
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 (need it to maintain some statistics for mirrored websites) Thanks in advance -- Regards, Mariusz Handke [MJH1-6BONE

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 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] > > > But the server response is not returned to the initial client. which calls > http://oexdev.oracleoutsourcing.com/cgi-b

[EMAIL PROTECTED] Rewrite rule with Servlet Issue

2006-02-09 Thread stepabest
Hi Apache gurus, I have got Apache running on auohsepcb11.oracleoutsourcing.com:10280 The site is accesible thorugh URL oexdev.oracleoutsourcing.com with is the BIG IP mapping to the Internal auohsepcb11.oracleoutsourcing.com:10280 When I try to setup rewriting like that: ProxyRequests On Rewr

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

Re: [EMAIL PROTECTED] rewrite rule

2006-01-25 Thread Kailash Vyas
-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

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 h

[EMAIL PROTECTED] rewrite rule

2006-01-25 Thread Kailash Vyas
hi all, I am working on rewrite rule for a website and need some help on it. I need all the requests for php pages to be handled by index page. for example urls http://example.com/xyz/1/2/3 http://example.com/abc/1/2/3 should be handled by http://example.com/index.php thanks, kailash -

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

2005-10-09 Thread Axel-Stéphane SMORGRAV
-Original Message- From: Holger Schmieder [mailto:[EMAIL PROTECTED] Sent: Monday, October 10, 2005 8:06 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Rewrite-rule with other variables Hello, Is there a way to us other apache-vars in rewrite rules. Escpecialy i like to use the SSL

[EMAIL PROTECTED] Rewrite-rule with other variables

2005-10-09 Thread Holger Schmieder
Hello, Is there a way to us other apache-vars in rewrite rules. Escpecialy i like to use the SSL-Vars: there is a var named SSL_CLIENT_S_DN_O or SSL_CLIENT_S_DN_CN. These vars i like to use in a rewrite rule. Thanks for every idea. Holger --