Hi all
I have installed another VirtualHost on the same
server IP address. Both server domain and the new
domain use SSL to login to SqWebMail. It is possible
to login to SqWebMail using server domain name (eg.
mail.server.com) successfully, but when I try to login
using the new domain (mail.newDomain.com) results the
following error message:
Bad request!
Your browser (or proxy) sent a request that this
server could not understand.
If you think this is a server error, please contact
the webmaster.
Error 400
Please note, using mail.newDomain.com, I get the login
page correctly with HTTPS on. I have made SSL
VirtualHost for the mail.newDomain.com listen to port
55000.
I use --enable-https=login with SqWebMail. I noted the
problem is when the SqWebMail is switching from HTTPS
to HTTP after login, it does not drop the port (55000)
from the URL. So the SqWebMail attempts to connect to
the Apache using following URL:
http://mail.newDomain.com:55000/cgi-bin/webmail/sqwebmail/login/....
How do I configure the SqWebMail to drop the port
(55000) when it is switching from HTTPS to HTTP?
Is there any other workaround for this issue?
Many thanks in advance.
Kind regards
Sagara
PS: my httpd.conf and ssl.conf are as follows:
httpd.conf
==========
Listen 80
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
NameVirtualHost serverIPaddress:80
<VirtualHost mail.server.com>
ServerName mail.server.com
</VirtualHost>
<VirtualHost mail.newDomain.com>
ServerName mail.newDomain.com
</VirtualHost>
ssl.conf
========
<IfDefine SSL>
Listen 443
Listen 55000
<VirtualHost serverIPaddress:443>
ServerName mail.server.com
SSLEngine on
</VirtualHost>
<VirtualHost serverIPaddress:55000>
ServerName mail.newDomain.com:55000
SSLEngine on
</VirtualHost>
</IfDefine>