httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Davidson <br...@ahsservices.net>
Subject RE: [users@httpd] VirtualHost & Location
Date Tue, 16 Mar 2010 14:04:47 GMT
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<http://www.google.com/>
> </Location>
> <Location /SomeUrl/>
> ProxyPass  http://www.google.com<http://www.google.com/>
> </Location>
> <Location /SomeUrl/index.html>
> ProxyPass  http://www.google.com<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<http://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


Mime
View raw message