Re: VirtualHost & Location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


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

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux