• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Change Horde from webmail.domain.tld to www.domain.tld/webmail/

hophop

New Pleskian
Hi THere,

I cannot get horde to work (plesk 12 on ubuntu 14) on www.domain.tld/webmail (default is webmail.domain.tld)
- created a folder in usr/local/psa/admin/conf/templates/custom
- copied the domainWebmail.php.
- Changed the parameter so i would go to the url i wanted.
- then run : /usr/local/psa/admin/bin/httpdmng --reconfigure-all
- restarted apache2

no go, is there another thing i must do ? (Additional directives?)
Hope some can help me with this.

thanks in advance
 
the custom/domainWebmail.php i changed to this:

<?php echo AUTOGENERATED_CONFIGS; ?>

<?php /** @var Template_VariableAccessor $VAR */ ?>
<?php
if (!$VAR->domain->webmailActive) {
echo "# Domain is disabled or suspended\n";
return;
}
?>
ServerAlias "www.<?php echo $VAR->domain->asciiName ?>/webmail/"
<?php foreach ($VAR->domain->mailAliases AS $alias): ?>
ServerAlias "www.<?php echo $alias->asciiName ?>/webmail/"
<?php endforeach; ?>
 
Thanks @IgorG for the response.
I didn't modified the nginx file, so changed both of the files.

Then i created a symbolic link ---> ln -s /usr/share/psa-horde/ /var/www/vhosts/domain.tld/httpdocs/webmail

When i go to www.domain.tld/webmail/ the site jumps back to www.domain.tld/login.php

Als when i go to www.domain.tld/webmail/login .php i get the login screen, but after login, its redirecting me automatic to http://www.domain.tld/login.php

Its working but not redirecting document root for horde

Tryed this with no luck:

Alias /webmail /usr/share/psa-horde
<Directory /usr/share/psa-horde>
Order allow,deny
Allow from all
Options +FollowSymLinks - SymLinksIfOwnerMatch
</Directory>


Pretty newbie and clueless sorry!

thanks



 
Last edited:
An Update:

Changed the following file: /usr/share/psa-horde/config/registry.php and added the following:
$this->applications = array(
'horde' => array(
'initial_page' => 'services/portal/index.php',
'name' => _("Horde"),
'provides' => 'horde',
'webroot' => '/webmail',

Also changed the directives to:

Alias /webmail /var/www/vhosts/domain.tld/httpdocs/webmail/

<Directory /var/www/vhosts/domain.tld/httpdocs/>
Order allow,deny
Allow from all
Options +FollowSymLinks -SymLinksIfOwnerMatch
</Directory>

Now the login page is showing...still cant figure out why I can't loggin suddenly. (no log files filled and my email is as admin defined in the config)
 
Back
Top