httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunter Verbocht" <gun...@verbocht.be>
Subject RE: [users@httpd] mod-rewrite question
Date Thu, 23 Jan 2003 17:57:13 GMT
Hi,

When I was trying to get it all to work, I had the same problem that 
   RewriteCond %{REQUEST_URI} ^/students.asp(.*)
   RewriteRule  ^/(.*) http://www.bar.com/$1 [P]
returned a 403 error. The reason is that you are using proxy (look at
the [P]) but you have not installed the proxy mod. Add to httpd.conf the
load proxy module and add proxy module. Then these rules will work.

Regards,

Gunter Verbocht

-----Original Message-----
From: Jack Elliston [mailto:elliston@benedictine.edu] 
Sent: donderdag 23 januari 2003 19:01
To: users@httpd.apache.org
Subject: [users@httpd] mod-rewrite question

This question is similar to the recent thread related to mod-rewrite and
keeping the original URL.

Based on reading the other thread it sounds like I need to use mod-proxy
but
let me ask anyway to confirm.

Here is what I want

Local site: www.foo.com
Other site: www.bar.com

I want all traffic for www.foo.com with "students.asp" in the url to get
the
content for those pages from www.bar.com with everything in the path
simply
passed on.  I prefer to deliver to the client the
www.foo.com/students.asp?xxxx rather than the
www.bar.com/students.asp?xxxx

I have mod-rewrite installed and I am doing some of this sort of thing
locally but not across domains/machines.

My current rewrite rule:

   RewriteCond %{REQUEST_URI} ^/students.asp(.*)
   RewriteRule  ^/(.*) http://www.bar.com/$1 [P]

The above generates a 403 Forbidden error while a "[R]" or no option all
redirect and display the www.bar.com version of the URL.

Is this doable in mod-rewrite?  I potentially will have a couple of more
complex scenarios if I get this working.

Thanks for your help,
----------------------------------------
Jack Elliston
Director, Computing and Network Services
Benedictine College
(913) 360-7372


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