httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Wijetunga <>
Subject [users@httpd] How to drop port when switching from https to http
Date Fri, 16 Jul 2004 15:45:08 GMT
Hi all

I have a webmail application. It sends user id and
password to the server using SSL. After that it
switches from https to http and continue.

I have two domains configured using same IP address.
Therefore, one domain I configured using a different
port in the ssl.conf. My problem is when the
application switches from https to http, the port
still remains and there is no VirtualHost to capture
it and ends with a error as follows:
“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”

Let me give an example:

2. Get the login page, type user id and password
3. The webmail now switches from https to http 
4. The webmail now issue:
5. Bad request! Error 400

How do I drop the port 55000 from the above URL in
step 4 and resubmit to the Apache server? 

My httpd.conf and ssl.conf is included below. 

Many thanks in advance.

Kind regards

Listen 80

<IfModule mod_ssl.c>
Include conf/ssl.conf

NameVirtualHost serverIPaddress:80






<IfDefine SSL>
Listen 443
Listen 55000

<VirtualHost serverIPaddress:443>

SSLEngine on


<VirtualHost serverIPaddress:55000>

SSLEngine on


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message