[Resolved] ISPConfig not redirecting to client folder Dear all, Every time I create a new client website, ISPConfig redirects to my apache root page (the famous "It works! This is the default web page for this server. The web server software is running but no content has been added, yet." page) instead of the e.g. /var/www/clients/client14/web13/web directory. I don't really know how to correct that because I expect ISPConfig to configure vhost the proper way. But I would not be surprise if I'd missed something. Thanks a ton for you help ! PS : I am running version 3.0.5.2
First of all: You should upgrade to latest ISPConfig version. It's really important due to security issues fixed. Are the symlinks in /etc/apache2/sites-enabled/ there for your created websites?
Hello Croydon, Yes, all vhost files are present in /sites-enabled/100-domain.com.vhost and in /sites-available/domain.com.vhost My domains are managed by an external provider (OVH) and my A record for domain.com. points at my VPS IP address.
Have you any vhost files that do not come from ISPConfig in there? If yes, please post their contents.
OK, there you go Code: Alias /webmail /usr/share/roundcube <Directory /usr/share/roundcube> Options Indexes FollowSymLinks AllowOverride None DirectoryIndex index.php Order Allow,Deny Allow from all </Directory> <Directory /usr/share/roundcube/*> Deny from all </Directory> <Directory /usr/share/roundcube/config> Deny from all </Directory> <Directory /usr/share/roundcube/temp> Deny from all </Directory> <Directory /usr/share/roundcube/logs> Deny from all </Directory> <Directory /usr/share/roundcube/skins> Allow from all </Directory> <Directory /usr/share/roundcube/installer> Allow from all </Directory> <Directory /usr/share/roundcube/bin> Allow from all </Directory> <Directory /usr/share/roundcube/SQL> Allow from all </Directory> <Directory /usr/share/roundcube/program> Allow from all </Directory> <Directory /usr/share/roundcube/plugins> Allow from all </Directory> Code: #NameVirtualHost server.ip.address:80 <VirtualHost server.ip.address:80> ServerAdmin [email protected] ServerName test.krg-23.com DocumentRoot /var/www/supportfid/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/support-fid/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost> Code: #NameVirtualHost server.ip.address:80 <VirtualHost server.ip.address:80> ServerAdmin [email protected] ServerName ts3.krg-23.com DocumentRoot /var/www/ts3/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/ts3/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost> Those are present in the /sites-enabled folder
Okay, there is your problem! <VirtualHost server.ip.address:80> takes precedence over <VirtualHost *:80> So your ISPConfig websites will never show. Change the two files to <VirtualHost *:80> instead of <VirtualHost server.ip.address:80> and reload apache.
Well, I ran numerous tests and now all my websites are pointing to the default apache sucess page. What I did was to a2dissite those files that were wrong. Only one, though, is showing its 'personal' homepage but I get a 404 error when accessing subfolders. All VirtualHost directives are *:80
I think everything should be fine eventhough there are some warnings and yes, the phrase shows up: Code: Warning: DocumentRoot [/usr/share/squirrelmail] does not exist [Sun May 18 19:33:49 2014] [warn] NameVirtualHost *:443 has no VirtualHosts VirtualHost configuration: [B][U]server.ip.address:80 is a NameVirtualHost[/U][/B] default server server.domain.com (/etc/apache2/sites-enabled/000-default:2) port 80 namevhost server.domain.com (/etc/apache2/sites-enabled/000-default:2) wildcard NameVirtualHosts and _default_ servers: _default_:8081 vps.domain.com (/etc/apache2/sites-enabled/000-apps.vhost:9) *:8080 is a NameVirtualHost default server vps.domain.com (/etc/apache2/sites-enabled/000-ispconfig.vhost:9) port 8080 namevhost vps.domain.com (/etc/apache2/sites-enabled/000-ispconfig.vhost:9) *:80 is a NameVirtualHost default server webmail.krg-23.com (/etc/apache2/conf.d/squirrelmail.conf:4) port 80 namevhost webmail.krg-23.com (/etc/apache2/conf.d/squirrelmail.conf:4) port 80 namevhost site1.com (/etc/apache2/sites-enabled/900-site1.com.vhost:7) port 80 namevhost www.site2.com (/etc/apache2/sites-enabled/900-site2.com.vhost:3) port 80 namevhost site3.fr (/etc/apache2/sites-enabled/900-malefices.fr.vhost:7) port 80 namevhost ts3.krg-23.com (/etc/apache2/sites-enabled/900-ts3.krg-23.com.vhost:7) Syntax OK
As you can see you still have a vhost with ip instead of * that takes all requests: /etc/apache2/sites-enabled/000-default Disable / change it, reload apache and run the command again.
Well, I eventually disabled the 'default' vhost (created by apache2). However, there is still no website redirecting to the ISPConfig default webpages. The problem remains. EDIT : it works now ! But only for addresses like domain.com but not for www.domain.com ... which I don't get ... I may have some wrong parameters in the auto-subdomain options. I'll work it out tomorrow. Thank you very much for your help !!