httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] Restrict subdirectory access based on host name
Date Mon, 09 May 2011 02:44:45 GMT
On Fri, May 6, 2011 at 12:12 AM, Ndmigration <ndmigration@gmail.com> 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

Mime
View raw message