On Fri, May 6, 2011 at 12:12 AM, Ndmigration <[email protected]> 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

Reply via email to