On Tue, Mar 16, 2010 at 7:34 PM, Brent Davidson <br...@ahsservices.net> wrote:
> On 03/16/2010 05:49 PM, Milan Tomic wrote:
>> Good day,
>>
>> How can I (if it is possible at all) specify that all requests to:
>>
>> /SomeUrl
>> /SomeUrl/
>> /SomeUrl/index.html
>>
>> go to one location and all other requests like
>>
>> /SomeUrl/somePage.html
>>
>> go to the other location? I have started editing httpd.conf like this:
>>
>> <VirtualHost *:8080>
>> <Location /SomeUrl>
>> ProxyPass  http://www.google.com
>> </Location>
>> <Location /SomeUrl/>
>> ProxyPass  http://www.google.com
>> </Location>
>> <Location /SomeUrl/index.html>
>> ProxyPass  http://www.google.com
>> </Location>
>> # for other requests...?
>> </VirtualHost>
>>
>> Do I have to use rewrite rules?
>>
>> Thank you in advance,
>> Milan
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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-unsubscr...@httpd.apache.org
>>     "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>
> Why are you using ProxyPass ? You can use Redirect if don't want to mask
> that content is coming from your server (and of course save your bandwidth).
>
> --
> Nilesh Govindarajan
> Site & Server Adminstrator
> www.itech7.com
>
> ----------
> This is the first I have seen this comment. How does redirect save bandwidth
> compared to Porxypass?
> Brent
>
>
> ---------------------------------------------------------------------
> 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-unsubscr...@httpd.apache.org
>    "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

ProxyPass downloads the data using your server's connection and then
outputs the data to the client. Whereas redirecting, tells the client
to fetch data from another server. Thus your server doesn't have to
download data and emit it to the client.

-- 
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to