Re: [users@httpd] Restrict subdirectory access based on host name

2011-05-08 Thread Yehuda Katz
On Fri, May 6, 2011 at 12:12 AM, Ndmigration wrote: > > Thanks for your response. The below is what I currently have it. But, when > I > use www.sc.com/cs then I was able to access it. However, I would like to > restrict it. So, only www.sc.org can go to cs folder, and www.sc.com can > go > to dam

Re: [users@httpd] Restrict subdirectory access based on host name

2011-05-05 Thread Ndmigration
Hi, Thanks for your response. The below is what I currently have it. But, when I use www.sc.com/cs then I was able to access it. However, I would like to restrict it. So, only www.sc.org can go to cs folder, and www.sc.com can go to dam folder NameVirtualHost *: DocumentRoot "/usr/loca

Re: [users@httpd] Restrict subdirectory access based on host name

2011-05-05 Thread Yehuda Katz
On Thu, May 5, 2011 at 11:41 PM, Ndmigration wrote: > www.sc.org should serve site from a folder called "cs" > www.sc.com should serve site from a folder called "dam" > > but I don't want them to be interchangeable like www.sc.org/dam or > www.sc.com/cs. How to restric this? > Are they in a Name

[users@httpd] Restrict subdirectory access based on host name

2011-05-05 Thread Ndmigration
Hi, We have two web servers under load balancer. I want to restrict access to certain path based on host name. For example, 1. www.sc.org 2. www.sc.com Both the above are pointing to the same Load Balacer IP but they need to serve site from different folders. However, they should not serve si