httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <li...@itech7.com>
Subject Re: [users@httpd] VirtualHost & Location
Date Tue, 16 Mar 2010 16:19:44 GMT
On Tue, Mar 16, 2010 at 7:34 PM, Brent Davidson <brent@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-unsubscribe@httpd.apache.org
>>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@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-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@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-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