PDA

View Full Version : Wrong document root?


marco114
20th June 2006, 21:44
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 webmaster@camodog.com
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

adamluz
21st June 2006, 00:23
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.

adrenalinic
27th April 2007, 17:39
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.

falko
28th April 2007, 20:03
What's in your Vhosts_ispconfig.conf, and what's the output of ifconfig?