RE: [us...@httpd] best way to modify a URL

2009-12-17 Thread Oliver Schoenborn
Thanks Andre for the detailed explanations. Looks like I have it figured out: From: André Warnier [...@ice-sa.com] 1. Client goes to http://dodo.foo.com: A. server changes this to http://foo.com/bar B. server returns content (which will be http://foo.com/bar/index.html) C. client sees

Re: [us...@httpd] best way to modify a URL

2009-12-17 Thread André Warnier
Oliver Schoenborn wrote: In order to apply the proxying just for dodo.foo.com only, I use a rewrite rule. Here is what I have so far, seems to work completely: RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ RewriteRule ^/bar/(.*) /$1[R,L] RewriteCond

RE: [us...@httpd] best way to modify a URL

2009-12-17 Thread Oliver Schoenborn
RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ RewriteRule ^/bar/(.*) /$1[R,L] RewriteCond %{HTTP_HOST} ^dodo\.foo\.com$ RewriteRule ^(.+)%{HTTP_HOST}$1 [C] RewriteRule ^dodo\.foo\.com/(.*)

Re: [us...@httpd] best way to modify a URL

2009-12-17 Thread André Warnier
2. major issue: form POST problem: form POST should probably not get redirected either, but so far I can't find what condition to test for Purely as an aside : Redirecting a POST internally is not a problem, because it happens early, before Apache even starts to read the request body (so

RE: [us...@httpd] best way to modify a URL

2009-12-17 Thread Oliver Schoenborn
From: André Warnier [...@ice-sa.com] Considering your latest answer, I am also now inclined to think that using VirtualHost sections would be much cleaner. More efficient, more maintainable, or less code to write to obtain same effect? Probably all of the above. General idea : What I

Re: [us...@httpd] best way to modify a URL

2009-12-16 Thread Norman Peelman
Oliver Schoenborn wrote: I have a simple problem: the URL root for a client website we are setting up is http://foo.com/bar/*, but our client wants access to be it via http://dodo.foo.com http://qun.foo.com/*, how would I set this up? I have used mod_proxy in the past for something similar

RE: [us...@httpd] best way to modify a URL

2009-12-16 Thread Oliver Schoenborn
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: December 15, 2009 5:59 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] best way to modify a URL Oliver Schoenborn wrote: I have a simple problem: the URL root for a client website we are setting up

RE: [us...@httpd] best way to modify a URL

2009-12-16 Thread Oliver Schoenborn
...@newmediagateway.com] Sent: December 15, 2009 6:14 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] best way to modify a URL Oliver Schoenborn wrote: I have a simple problem: the URL root for a client website we are setting up is http://foo.com/bar/*, but our client wants access

Re: [us...@httpd] best way to modify a URL

2009-12-16 Thread André Warnier
Much, much better, and really clear this time. Oliver Schoenborn wrote: Sorry I didn't notice the html format, I'm amazed that some people were able to understand my question! (only the smart ones) Hopefully it works now. Here is what I am trying to do, 2 separate cases: 1. Client goes to

[us...@httpd] best way to modify a URL

2009-12-15 Thread Oliver Schoenborn
I have a simple problem: the URL root for a client website we are setting up is http://foo.com/bar/*, but our client wants access to be it via http://dodo.foo.comhttp://qun.foo.com/*, how would I set this up? I have used mod_proxy in the past for something similar but this doesn't seem to be

Re: [us...@httpd] best way to modify a URL

2009-12-15 Thread André Warnier
Oliver Schoenborn wrote: I have a simple problem: the URL root for a client website we are setting up is http://foo.com/bar/*, but our client wants access to be it via http://dodo.foo.comhttp://qun.foo.com/*, how would I set this up? I have used mod_proxy in the past for something similar

Re: [us...@httpd] best way to modify a URL

2009-12-15 Thread Justin Pasher
Oliver Schoenborn wrote: I have a simple problem: the URL root for a client website we are setting up is http://foo.com/bar/*, but our client wants access to be it via http://dodo.foo.com http://qun.foo.com/*, how would I set this up? I have used mod_proxy in the past for something similar