VirtualHost accessable from main domain - how to stop

Discussion in 'Apache' started by willybfriendly, Aug 6, 2006.

  1. #1
    I have two domains running on one VPS. One domain is running as a virtualHost.

    Unfortunately, it remains accesible from the main URL, which I would like to put a stop to.

    In other words, www.virtualHost.com (which resides in the folder /example/) is accessible through both:

    www.virtualhost.com

    and

    www.mainsite.com/example

    I am sure there is something simple I am missing in setting up the htppd.conf

    Any help would be appreciated
     
    willybfriendly, Aug 6, 2006 IP
  2. willybfriendly

    willybfriendly Peon

    Messages:
    700
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Bump...

    Any ideas out there?
     
    willybfriendly, Aug 7, 2006 IP
  3. sunday

    sunday Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Move your DocumentRoot for virtual host to some other location is the best I can suggest.
     
    sunday, Aug 7, 2006 IP