Adding virtual hosts stops main site

Discussion in 'Apache' started by colbec, Aug 1, 2006.

  1. #1
    Using 2.2.3 I have a main site running from inside htdocs.

    When I add virtual hosts and userdir the virtual hosts work fine but the main site in htdocs is no longer recognized (you do not have permission to access / ). Remove the virtual hosts and the main site starts up again as if nothing happened.

    Are one main site in htdocs and virtual hosts mutually exclusive? What am I missing here?
     
    colbec, Aug 1, 2006 IP
  2. sacx13

    sacx13 Active Member

    Messages:
    438
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Do you use NameVirtualHost for every conf ?

    Regards
     
    sacx13, Aug 2, 2006 IP
  3. elchuecodel88

    elchuecodel88 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    what is NameVirtualHost ?
     
    elchuecodel88, Aug 3, 2006 IP
  4. sunday

    sunday Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Post your virtualhost enteries.
     
    sunday, Aug 6, 2006 IP
  5. Golfboards

    Golfboards Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could always just add your main site into the VirtualHost list as a "new" virtual host. Depends on your needs I guess but I usually don't run a main site on the servers anyway, just set up virtualhosts from day 1 and leave the /var/www/html (on Fedora anyway) directory empty.
     
    Golfboards, Aug 10, 2006 IP