all sites are getting "Index of /" page instead of the domain directory

Discussion in 'Installation/Configuration' started by jagnag1, Dec 16, 2006.

  1. jagnag1

    jagnag1 New Member

    Problem: all my sites go to the same "Index Of /" page instead of the correct vhost site.

    Hi Everyone, this is my first experience with ISPConfig and love the prospects of what this software offers. However I have this 1 single problem and was hoping someone could direct me to a fix.

    I've built an Ubuntu server (LTS 6.0.6 Dapper) using the Ubuntu Dapper Perfect Setup on Howto forge which I'm sure you're familiar with. The installation went fine, as did the the ISPConfig build.

    I proceeded to enter 3 sites into the ISPConfig admin control panel which also seems to be OK and the DNS is resolving fine now.

    The problem occurs when I tried to go the new site in my client browser. Instead of the vhosts directing me to the correct folder I just get "Index of /" and a list of the sites I had just created.

    For example, if I go to www.trailseekr.com I get the page:

    Code:
    Index of /
     Name                    Last modified      Size  Description-------------------------------------------------------------------------------- apache2-default/        26-Jul-2006 11:50    -   
     sharedip/               21-Nov-2006 12:24    -   
     web5/                   24-Nov-2006 23:36    -   
     web8/                   26-Nov-2006 17:04    -   
     web9/                   26-Nov-2006 17:05    -   
     www.example.com/        25-Nov-2006 00:30    -   
     www.journapedia.com/    26-Nov-2006 17:05    -   
     www.trailseekr.com/     26-Nov-2006 17:04    -   
     www.trailtales.ca/      24-Nov-2006 23:36    -   
    --------------------------------------------------------------------------------
    Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a Server at www.trailseekr.com Port 80
    For now, I have another Ubuntu server (without ISPConfig) and the sites are running fine over there so you won't be able to visit it for a "live" example of the problem. I'd like to cut over the Ubuntu-ISPConfig server as soon as possible though - this is the only problem holding me back.

    Hopefully someone out there has some suggestions??


    John
     
  2. till

    till Super Moderator

    Have you selecteted the correct IP in ISPConfig for the websites? If your server is behind a router, you must select your internal IP address, not the external.
     
  3. jagnag1

    jagnag1 New Member

    yes the ISPConfig server is behind a firewall. The Sites only list the external IP of the router in the dropdown box...
    I thought that would mess up the DNS stuff so I left it as the external IP...

    Ok so I went back to the Management | Server | Settings options and changed the servers IP to the internal 192.168.x.x address then went back to the ISPManager | Sites | {websitename} and changed the dropdown to the internal IP as well.

    The site seems to be redirecting fine now!

    I double checked the DNS config for the {websitename} and it has remained the external IP. Everything seems to be running fine now!
    Thanks Till...
     
    Last edited: Dec 16, 2006
  4. till

    till Super Moderator

    When you create new websites, you will have to change the IP for the DNS record of the site to the external IP in DNS manager. There is curently no other solution as ISPConfig does not know which internal IP corresponds to which external IP.
     

Share This Page