I wanted all new and existing customers have:
www.domain.tld/phpmyadmin
www.domain.tld/webmail
So i installed phpmyadmin and roundcube in /var/www/sharedip (this way it's also reachable through
http://serverip/...
/var/www/sharedip/_phpmyadmin
/var/www/sharedip/_webmail
(i put _ infront to distinguish normal folders from alias-ed dirs)
- Make a extra.conf in /etc/apache2
Code:
Alias /phpmyadmin/ /var/www/sharedip/_phpmyadmin/
Alias /webmail/ /var/www/sharedip/_webmail/
<Directory "/var/www/sharedip/">
AddType application/x-httpd-php .php
AllowOverride Options Limit FileInfo
</Directory>
The AllowOverride is there for roundcube to work correctly (with it's .htaccess)
Add the following line at the END of your /etc/apache2/apache2.conf:
Code:
Include /etc/apache2/extra.conf
Now install roundcube as normal, just follow the instructions and use the test at the end to see if everything works.
Now open main.inc.php and go to line 76. It should say:
Code:
$rcmail_config['username_domain'] = '';
change that to:
Code:
preg_match('/.*?\.(.*)/', $_SERVER['SERVER_NAME'], $aMatches);
$rcmail_config['username_domain'] = $aMatches[1];
It's probably not watertight, but it works
Recent comments
1 day 22 hours ago
2 days 7 hours ago
2 days 10 hours ago
2 days 11 hours ago
2 days 13 hours ago
2 days 14 hours ago
2 days 16 hours ago
2 days 17 hours ago
3 days 9 hours ago
3 days 10 hours ago