• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Tearing hair out... please help!

R

redcarrot

Guest
Hi

I have installed Roundmail to replace the ugly Horde interface. It has been installed in /var/www/vhosts/default/htdocs/webmail and works fine when I access it via http://212.241.213.223/webmail.

The problem - I need the new /webmail folder to be accessible from any of this servers domains, ie:

http://www.redcarrot.co.uk/webmail
http://www.snrplc.co.uk/webmail
http://www.credocare.co.uk/webmail

... and so on.

So, in my Apache config file I added the following line:

Alias /webmail /var/www/vhosts/default/htdocs/webmail

If I continue to use http://212.241.213.223/webmail, all works fine. But if I use any of the virtual domains above, I get an alert box that tells me:

"You have chosen to open

which is a: application/x-httpd-php
from: http://www.redcarrot.co.uk

What should Firefox do with this file?"

Now, i understand that the server doesn't know what to do with the PHP file, but how do I configure Apache?

I have included my Apache config below. The Alias for /webmail is at the bottom.

Any help here would be greatly appreciated!

Code:
NameVirtualHost 212.241.213.223:80
NameVirtualHost 212.241.213.223:443
ServerName lvps212-241-213-223.vps.webfusion.co.uk
ServerAdmin [email]me@domain.com[/email]

DocumentRoot /var/www/vhosts/default/htdocs

<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<IfModule !mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<Directory "/var/www/vhosts">
	AllowOverride All
	Options SymLinksIfOwnerMatch
	Order allow,deny
	Allow from all
	<IfModule mod_php4.c>
	php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
	php_admin_flag engine off
	</IfModule>
</Directory>

<Directory "/usr/lib/mailman">
	AllowOverride All
	Options SymLinksIfOwnerMatch
	Order allow,deny
	Allow from all
	<IfModule mod_php4.c>
	php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
	php_admin_flag engine off
	</IfModule>
</Directory>

<IfModule mod_userdir.c>
	UserDir disabled
</IfModule>
<VirtualHost \
			212.241.213.223:80 \
			>
	ServerName default
	UseCanonicalName Off
	DocumentRoot /var/www/vhosts/default/htdocs
	ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory "/var/www/vhosts/default/cgi-bin/">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
	<Directory /var/www/vhosts/default/htdocs>
<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
	</Files>
	</IfModule>
	<IfModule mod_php4.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
	</IfModule>
	</Directory>
	CustomLog /var/log/apache2/access_log combined
</VirtualHost>


<IfModule mod_ssl.c>

<VirtualHost 212.241.213.223:443 >
	ServerName default-212-241-213-223
	UseCanonicalName Off
	DocumentRoot /var/www/vhosts/default/httpsdocs
	ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /opt/psa/var/certificates/certXq5yfuj
	<Directory "/var/www/vhosts/default/cgi-bin/">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
	<Directory /var/www/vhosts/default/httpsdocs>
		SSLRequireSSL
	</Directory>
	CustomLog /var/log/apache2/access_log combined
</VirtualHost>

</IfModule>

<VirtualHost \
			212.241.213.223:80 \
			>
	DocumentRoot /usr/share/psa-horde/
	Alias /horde/ /usr/share/psa-horde/
	Alias /imp/ /usr/share/psa-horde/imp/
	ServerName webmail
	ServerAlias webmail.*
	UseCanonicalName Off
	<Directory /usr/share/psa-horde>
		<IfModule mod_php4.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-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
			php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/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-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
			php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
		</IfModule>
		Order allow,deny
		Allow from all
	</Directory>
	CustomLog /var/log/apache2/access_log combined
</VirtualHost>


<IfModule mod_ssl.c>

<VirtualHost \
			212.241.213.223:443 \
			>
	DocumentRoot /usr/share/psa-horde/
	Alias /horde/ /usr/share/psa-horde/
	Alias /imp/ /usr/share/psa-horde/imp/
	ServerName webmail
	ServerAlias webmail.*
	UseCanonicalName Off
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /etc/apache2/httpd.pem
	<Directory /usr/share/psa-horde>
		<IfModule mod_php4.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-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
			php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/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-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
			php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
		</IfModule>
		SSLRequireSSL
		Order allow,deny
		Allow from all
	</Directory>
	CustomLog /var/log/apache2/access_log combined
</VirtualHost>


</IfModule>

<VirtualHost \
			212.241.213.223:80 \
			>
	DocumentRoot /var/www/vhosts/default/htdocs
	ServerName lists
	ServerAlias lists.*
	UseCanonicalName Off
	ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
	ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
	Alias /icons/ /var/lib/mailman/icons/
	Alias /pipermail/ /var/lib/mailman/archives/public/
	Alias /images/ /usr/share/images/
	<Directory /var/lib/mailman/archives/>
		Options FollowSymLinks
		Order allow,deny
		Allow from all
	</Directory>
	CustomLog /var/log/apache2/access_log combined
</VirtualHost>


<IfModule mod_ssl.c>

<VirtualHost \
			212.241.213.223:443 \
			>
	DocumentRoot /var/www/vhosts/default/httpsdocs
	ServerName lists
	ServerAlias lists.*
	UseCanonicalName Off
	ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
	ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
	Alias /icons/ /var/lib/mailman/icons/
	Alias /pipermail/ /var/lib/mailman/archives/public/
	Alias /images/ /usr/share/images/
	<Directory /var/lib/mailman/archives/>
		Options FollowSymLinks
		Order allow,deny
		Allow from all
	</Directory>
	CustomLog /var/log/apache2/access_log combined
</VirtualHost>


</IfModule>

Alias /webmail /var/www/vhosts/default/htdocs/webmail

Include /var/www/vhosts/snrplc.co.uk/conf/httpd.include

Include /var/www/vhosts/redcarrot.co.uk/conf/httpd.include

Include /var/www/vhosts/credocare.co.uk/conf/httpd.include

Include /var/www/vhosts/pficompliance.co.uk/conf/httpd.include
 
Anybody? I'm really struggling with this one, and I'm working to a bit of a deadline!

Any help here will be really appreciated...
 
Back
Top