• 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

How do I access Horde webmail via https://domain.com/webmail ?

rutp

New Pleskian
I am using Plesk 9.5 and 9.2.
I need to use own SSL for that domain.

I have tried in this link http://forum.parallels.com/showthread.php?t=72717&highlight=ssl+horde
But cannot fix it.


I my way, I have created a new file in /etc/httpd/conf.d/z_test.conf like this

<IfModule mod_ssl.c>
<VirtualHost 203.170.50.103:443>

ServerName domain.com:443
ServerAlias www.domain.com
ServerAdmin [email protected]

Include /etc/psa-webmail/horde/conf.d/*

UseCanonicalName Off

DocumentRoot /usr/share/psa-horde
DocumentRoot /etc/psa-webmail/horde/conf.d/

Alias /horde/ /usr/share/psa-horde/
Alias /imp/ /usr/share/psa-horde/imp/
Alias /webmail /usr/share/psa-horde/imp/
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/httpd.pem
CustomLog /tmp/access_ssl_log plesklog
ErrorLog /tmp/error_log


<Directory /usr/share/psa-horde>

<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off

php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa/webmail/horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:."
</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off

php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa/webmail/horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:."
</IfModule>

SSLRequireSSL

Order allow,deny
Allow from all
</Directory>
</VirtualHost>


But when I access to any webpage under https://domain.com/ such as https://domain.com/test.php it will always redirect to https://domain.com/webmail

I think may be something wrong on this

ServerName domain.com:443
ServerAlias www.domain.com

How can I set ServerName and ServerAlias like this domain.com/webmail?

Thanks for advance.
 
Include /etc/psa-webmail/horde/conf.d/*

maybe this is your problem add comment or delete and try again i think...
 
and you use double

DocumentRoot /usr/share/psa-horde
DocumentRoot /etc/psa-webmail/horde/conf.d/

i think second is not necassary ..
 
Back
Top