joximu Wrote:@edony44:
you can alter the file /etc/apache2/sites-enabled/master_oo.conf and deactivate the two lines with ServerName and ServerAlias and then make only one line
ServerName admin.yourdomain.tld
reload apache - finished.
Afterwards you should be able to let a user create yourdomain.tld (but he should not mak a subdomain named "admin"... of course... :-)
Here is my master conf file without any change :
<VirtualHost 192.168.0.4:80>
ServerAdmin me@mydomain.com
DocumentRoot /var/www/ispcp/gui
ServerName admin.mydomain.com
ErrorLog /var/log/apache2/users/admin.mydomain.com-error.log
TransferLog /var/log/apache2/users/admin.mydomain.com-access.log
CustomLog /var/log/apache2/admin.mydomain.com-traf.log traff
CustomLog /var/log/apache2/admin.mydomain.com-combined.log combined
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/index.php
ErrorDocument 403 /errors/index.php
ErrorDocument 404 /errors/index.php
ErrorDocument 500 /errors/index.php
Alias /pma /var/www/ispcp/gui/tools/pma/
Alias /webmail /var/www/ispcp/gui/tools/webmail/
Alias /ftp /var/www/ispcp/gui/tools/filemanger/
<IfModule mod_fastcgi.c>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fastcgi.c>
ScriptAlias /php4/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php4.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>