Hi !
I'm trying to set-up a bunch of small websites, but don't want to creat each one in ISPconfig. So i created a "container" and put each subsite in a subfolder of the "main" web folder.
So, i create a config file in /etc/apache2/sites-availlable, make a link to it in sites-enabled, and reload apache config. The DNS of each domain (2 external DNS servers, no zone set on my server) are corectly configured with A -> my server IP.
But accessing the sites display the default welcome page ("It works!"), and I can't find where the problem is.
Here is the conf file for one domain (later it will contain several similar vhosts) :
(MYSITE is the site name, located in the web folder of MAINSITE)
Code:
<VirtualHost *:80>
DocumentRoot /var/www/clients/client4/web13/web/MYSITE
ServerName MYSITE.com
ServerAlias www.MYSITE.com
ServerAdmin webmaster@MYSITE.com
ErrorLog /var/log/ispconfig/httpd/MAINSITE/error.log
<Directory /var/www/MAINSITE.com/web/MYSITE>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client4/web13/web/MYSITE>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>
# suexec enabled
SuexecUserGroup web13 client4
# suphp enabled
<Directory /var/www/clients/client4/web13/web/MYSITE>
suPHP_Engine on
# suPHP_UserGroup web13 client4
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
</Directory>
</VirtualHost>
When i reload apache config, everything seems fine : no error, except if i introduce a syntax error in the conf file, showing that it is effectively loaded and parsed. No error, but doing nothing visible !
If I declare MYSITE in ISPconfig as an alias of MAINSITE, everything work as exepcted : MYSITE.COM display MAINSITE.COM (this is not what i want to do).
Anybody have a clue ?
Great thanks !
Recent comments
4 hours 19 min ago
13 hours 46 min ago
14 hours 36 min ago
18 hours 9 min ago
22 hours 33 min ago
22 hours 55 min ago
1 day 1 hour ago
1 day 11 hours ago
1 day 16 hours ago
1 day 17 hours ago