• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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