Re: Restrict subdirectory access based on host name

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

 



On Fri, May 6, 2011 at 12:12 AM, Ndmigration <ndmigration@xxxxxxxxx> 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 folder

NameVirtualHost *:7777

<VirtualHost *:7777>
   DocumentRoot "/usr/local/apache/htdocs/cs"
   ServerName www.sc.org
</VirtualHost>

<VirtualHost *:7777>
   DocumentRoot "/usr/local/apache/htdocs/dam"
   ServerName www.sc.com
</VirtualHost>

You either:
1. Have folders "/usr/local/apache/htdocs/dam/cs" and "/usr/local/apache/htdocs/cs/dam" and that is what you are seeing
2. Apache is not actually loading the virtual hosts.

- Yehuda

[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