Website directory path is different

Discussion in 'Installation/Configuration' started by laptop_user, Oct 7, 2011.

  1. laptop_user

    laptop_user Member

    Hello all,

    I stumble upon a problem. When I create FTP user for my website I can use th FTP and upload file just fine. The problem is my website directory is different.

    My domain directory is at /var/www/clients/client0/web5/web/index.html - but the thing is if I edit index.html or upload my file in this via FTP, no changes will be made. I can't see any differences at www.mydomain.com

    My REAL index file is at /var/www/index.html - changes will be see at www.mydomain.com if I edit index.html in this directory.

    Please help:eek:
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Did you create www.mydomain.com through ISPConfig? Because ISPConfig doesn't create any vhosts with the document root /var/www.
     
  3. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Just a guess: either you missed to enable auto subdomain www in the website settings or you selected thevwrong ip address in the site settings.
     
  4. laptop_user

    laptop_user Member

    your latter guess is correct. I change my vps location and my provider issued me a new IP. My old IP is already added to the system and I use my old IP when I create website.

    Just curious how do you know about the wrong IP selection problem? My guess is this problem has happen before.

    Appreciate the responses from both of you. Problem solved. Thanks again.
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Apache routes all unkown requests to the /var/www folder. A unknown request is when apache does not find the combination of ip and domain, subdomain or alias in its configuration files. So the reason for your problem must have been such a mismatch :)
     

Share This Page