Re: How to protect domains in a multi-hosting Apache configuration

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

 



I'm not sure what problem you're trying to solve but the fact that they
resolve to the same IP is irrelevant. Do they share a DocumentRoot?

If they share a DocumentRoot and you want BOTH to access DOCUMENT_ROOT but
you only want abc.com to access DOCUMENT_ROOT/dir1, then you'll have to
restrict traffic with a rewrite rule or some other mechanism.

Jeff



> Hi,
>
>   Let's say I have two name-based Virtual Host (using the same port with
> same IP)
>
>   "abc.com" and "xyz.com", both of them resolve to IP address 10.18.1.10.
>
>   Let's say I have a URL called "http://abc.com/dir1"; which I want to be
> accessed only through domain name "abc.com".
>
>   Since they both resolve to the same IP, users can still access my "dir1"
> using http://xyz/dir1.
>
>   My question is, how can I restrict access to "dir1" so only URL starts
> with http://abc.com can get in? Thank you very much for your help.
>
>
>
> ---------------------------------
> Don't get soaked.  Take a quick peak at the forecast
>  with theYahoo! Search weather shortcut.



---------------------------------------------------------------------
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