2 Websites on 1 server?

Discussion in 'Site & Server Administration' started by ParaStorm5, Sep 11, 2009.

  1. #1
    I have ran 2 sites under one server before. However, I didn't pay much attention to how they were arranged in the public_html folder.

    I have two folders in the public_html folder and they are called XXX.com and ZZZ.com.

    However, when I try to pull the sites up, I get an index listing the sites.

    How can I fix this problem?

    Thanks!
     
    ParaStorm5, Sep 11, 2009 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Make sure that you have index.html files in them, or index.php. These are the default files that apache parses when there is no file name given.
     
    RHS-Chris, Sep 11, 2009 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    It seems that default page is not set. You can set is using .htaccess file too. Just add following line in your .htaccess file:

    DirectoryIndex index.php index.html index.htm

    Kailash
     
    kailash, Sep 11, 2009 IP
  4. SubZtep

    SubZtep Member

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #4
    SubZtep, Sep 11, 2009 IP
  5. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #5
    I dont get it too...
    in my server, public_html folder is my root, so if there are 2 folders in it: xxx.com and zzz.com then to access them :
    mysite.com/xxx.com and mysite.com/zzz.com ?

    correct me if I am wrong..
     
    bluebenz, Sep 11, 2009 IP