httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Min-Hua Luo <>
Subject Re: [users@httpd] How to protect domains in a multi-hosting Apache configuration
Date Tue, 17 Jul 2007 15:29:12 GMT
Thanks a lot for your response.

Stephen <> wrote:

Min-Hua Luo <> wrote:     Hi,
  Let's say I have two name-based Virtual Host (using the same port with same IP)
  "" and "", both of them resolve to IP address 
  Let's say I have a URL called "" which I want to be accessed only through
domain name "".
  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
can get in? Thank you very much for your help.
When you configure apache for the virtual hosts, you specify different document roots. This
keeps their directories separate and safe.

Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
View raw message