httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] How to drop port when switching from https to http
Date Mon, 19 Jul 2004 07:49:36 GMT


> -----Original Message-----
> From: Sagara Wijetunga [mailto:sagaralists@yahoo.com]
> Sent: Freitag, 16. Juli 2004 17:45
> To: users@httpd.apache.org
> Subject: [users@httpd] How to drop port when switching from https to
> http
> 
> 
> 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.

So it's the webmail application that makes the redirected URL... You'd
need to configure the webmail app to fix it.

> 
> 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 

One workaround is to make such a VH which then redirects to port 80:

<VH ip:55000>
  Redirect / http://server/ 
</VH>

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.


>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
> 
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



---------------------------------------------------------------------
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