httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Wijetunga <sagarali...@yahoo.com>
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:

1.
https://mail.someDomain.com:55000/cgi-bin/webmail....
2. Get the login page, type user id and password
3. The webmail now switches from https to http 
4. The webmail now issue:
http://mail.someDomain.com:55000/cgi-bin/webmail....
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
Sagara

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>


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message