• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Access webmail via IP address (without domain name)

webmail

Its not possible to access webmail via an IP in plesk .
 
I tried to add an Alias to the default host for my IP, via a vhost.conf file containing:

Alias /webmail /usr/share/psa-horde

In order to access webmail via:
IP.IP.IP.IP/webmail

It seems to work, but I got some PHP errors:

Warning: include_once(PEAR.php) [function.include-once]: failed to open stream: No such file or directory in /usr/share/psa-horde/lib/core.php on line 45

Warning: include_once() [function.include]: Failed opening 'PEAR.php' for inclusion (include_path='/usr/share/psa-horde/lib:.:') in /usr/share/psa-horde/lib/core.php on line 45

Warning: include_once(Log.php) [function.include-once]: failed to open stream: No such file or directory in /usr/share/psa-horde/lib/Horde.php on line 3

Warning: include_once() [function.include]: Failed opening 'Log.php' for inclusion (include_path='/usr/share/psa-horde/lib:.:') in /usr/share/psa-horde/lib/Horde.php on line 3

Any idea on how to resolve those errors?
 
I finally ended up with this:
----------------------------

<Directory /usr/share/psa-horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/etc/psa:/usr/share/psa-horde:/usr/share/psa-horde/config:/tmp"
php_admin_value include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde/pear:."
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/etc/psa:/usr/share/psa-horde:/usr/share/psa-horde/config:/tmp"
php_admin_value include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde/pear:."
</IfModule>
</Directory>
Alias /webmail /usr/share/psa-horde

----------------------------

Okay, now, I got redirected to this page:
/login.php?Horde3=bm77adeasmo4l0ujc0s1rvuqk6
Instead of /webmail/login.php...

But if I get this address:
http://IP.IP.IP.IP/webmail/imp/login.php
The Login page of IMP shows up!

I have to write a rule to rewrite "/" to "/webmail"...

How could I do this using Apache Rewrite Rules... Any Ideas?
 
Here we go!! This method is working for subdomains: accessing webmail via mysub.domain.tld/webmail ...

I added a .htaccess file in the directory which refers to /:

RewriteEngine on
RewriteRule ^(.*)$ /webmail/$1

So, finaly, I'm using this for a shared SSL:
https://secure.mydomain.com/webmail

But it still shows an internal error when it's set on a main vhost... So, it's not working for the IP access.
 
You can copy content of /usr/share/psa-horde into /var/www/default/htdocs folder.

Regards
 
Back
Top