ispCP - Board - Support
[SOLVED] subdomain webmail.* not working anymore after upgrade - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] subdomain webmail.* not working anymore after upgrade (/thread-3368.html)



[SOLVED] subdomain webmail.* not working anymore after upgrade - hendry - 05-26-2008 07:05 AM

Just upgraded from RC2 to RC4 and the usersites still seem to work so good job everybody! Only one problem and that is that in my sites-enabled masterfile under apache I had 2 subdomains running for every customer: webmail and antispam wich linked to Maia. How can I enable this feature again? I've copied the following code to the same file again but then I get a 404 error

Quote:# related URL to customers webmail
<VirtualHost xx.xx.xx.xx:80>

ServerAdmin <info@xxxxxxx.nl>
DocumentRoot /var/www/ispcp/gui/tools/webmail

ServerName webmail.admin.isp-domain.tld
ServerAlias webmail.*

ErrorLog /var/log/apache2/users/webmail-error.log
TransferLog /var/log/apache2/users/webmail-access.log
CustomLog /var/log/apache2/webmail-traf.log traff
CustomLog /var/log/apache2/webmail-combined.log combined

<IfModule mod_fastcgi.c>
SuexecUserGroup vu2000 vu2000
</IfModule>

<Directory /var/www/ispcp/gui/tools/webmail>
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/tools/webmail>
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>

<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui/tools/webmail>
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>

# related URL to customers antispam
<VirtualHost xx.xx.xx.xx:80>

ServerAdmin <info@xxxxxxxxx.nl>
DocumentRoot /var/www/ispcp/gui/tools/antispam

ServerName webmail.admin.isp-domain.tld
ServerAlias antispam.*

ErrorLog /var/log/apache2/users/antispam-error.log
TransferLog /var/log/apache2/users/antispam-access.log
CustomLog /var/log/apache2/antispam-traf.log traff
CustomLog /var/log/apache2/antispam-combined.log combined

<IfModule mod_fastcgi.c>
SuexecUserGroup vu2000 vu2000
</IfModule>

<Directory /var/www/ispcp/gui/tools/antispam>
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/tools/antispam>
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>

<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui/tools/antispam>
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>

Am I doing something wrong or are things working different under RC4?[/quote]


RE: subdomain webmail.* not working anymore after upgrade - hendry - 06-02-2008 06:39 PM

The error when trying to open a webmailsite is:

Not Found

The requested URL /php5/php5-fcgi-starter/index.php was not found on this server.


RE: subdomain webmail.* not working anymore after upgrade - hendry - 06-02-2008 08:52 PM

Problem solved: I've edited the module part with:

<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/
ScriptAlias /php5/ /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/:/tmp/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log$
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/tmp/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log$
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>

Now the sites are working again