Wrong document root?

Discussion in 'Installation/Configuration' started by marco114, Jun 20, 2006.

  1. marco114

    marco114 New Member

    Hello,

    I installed CentOS according to the guide located here. I used the proftpd server as it said it is "better supported" in ISPConfig
    http://www.howtoforge.com/perfect_setup_centos_4.3

    Then I installed ISPConfig and it went fine also. It all appears to be working.

    I created a site and then logged in to FTP, however, after I've uploaded the files, I still get the default site page instead of my uploaded content.

    After investigation it looks like ISPConfig is looking in a different place than the FTP directory:

    Apache seems to be looking here:
    /home/www/web5/web

    but content in FTP is uploading here:
    /home/www/web5/user/web5_camodog

    The setting under Server Settings > Web is: /home/www/

    It looks like there is also a AliasMatch directive, but I don't understand that at all as it uses a lot of RegEx.

    I have not modified anything yet, I wanted to fix this without modifying things by hand if possible as I think that is what is intended...

    <VirtualHost 208.53.1.50:80>
    ServerName www.camodog.com:80
    ServerAdmin [email protected]
    DocumentRoot /home/www/web5/web
    ServerAlias camodog.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /home/www/web5/log/error.log
    Alias /error/ "/home/www/web5/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /home/www/web5/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web5/user/$1/web/$3
    </VirtualHost>


    Thank you,
    Marc Pope
     
    Last edited: Jun 20, 2006
  2. adamluz

    adamluz New Member

    You need to click the box marked administrator when you setup a user account so it uploads in to the mail folder instead of the user folder. You can go back to the primary user you create and just place a check mark in that box. Changes take a few minutes to take effect on ispconfig so wait about 5 minutes then try to sign in and see where you upload. This should fix your problem.
     
  3. adrenalinic

    adrenalinic Member

    hello.
    i have the same problems.

    have created some domains, but all domain pointig to default apache document page.!!

    i use precompiled vmware debian 3.1 image in my local network.
    all my domains are visibile from internet....

    any idea?!?!?

    thanks.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in your Vhosts_ispconfig.conf, and what's the output of
    Code:
    ifconfig
    ?
     

Share This Page