Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Redirect webmail http > HTTPS, without Apache, How?
  •  
Dr.Bob

Messages: 57
Karma: 0
Send a private message to this user
Hi,
Currently I only have KMS on my server (so no other webserver like Apache) and I want all users to only use Secure webmail > https. Is there a way to not just disable HTTP, but make a redirect, so that people automatically are redirected to the HTTPS webmail?
  •  
desquinn

Messages: 145
Karma: 0
Send a private message to this user
use the meta refresh tag in a page

Des Quinn
  •  
Dr.Bob

Messages: 57
Karma: 0
Send a private message to this user
ok, but how? In what page?
  •  
desquinn

Messages: 145
Karma: 0
Send a private message to this user
you move the normal target that the http webmail page is going to load to a new name. you then replace it with another page that has the met refresh tag in it.

this then points to the https page of the new name.

HTH

Des Quinn
  •  
Dr.Bob

Messages: 57
Karma: 0
Send a private message to this user
Okay, that sounds logical, but as far as I can see there's just one index.php file in the webmail folder. And that php file is processed by zend, so I can't even touch the header tags inside it.

Is the solution you mention the way you have done it yourself, or theoritically speaking?
  •  
desquinn

Messages: 145
Karma: 0
Send a private message to this user
i have not done it with kerio but with many other scenarios

consider this:
  • request comes in for index.php (renamed obviously e.g. oldindex.php)
  • instead hits your new index.php
  • this then with the meta tag redirects to original index.php (oldindex.php)but on an ssl connection

HTH

Des Quinn
  •  
Dr.Bob

Messages: 57
Karma: 0
Send a private message to this user
And don't you think that webmail might have a problem with it that the default file (index.php) isn't the right one anymore?
  •  
desquinn

Messages: 145
Karma: 0
Send a private message to this user
nope.

when, or if you upgrade you might need to repeat the process as it might get overwritten.

also its an easy change to back out of......

Des Quinn
  •  
Dr.Bob

Messages: 57
Karma: 0
Send a private message to this user
From Kerio Tech Support:
Quote:

The insecure webmail in 6.1 will be able to redirect to HTTPS. For now, you would need to run apache and configure it to the URL for the KMS secure login.
  •  
desquinn

Messages: 145
Karma: 0
Send a private message to this user
This works as I suspected. tried and tested on a KMS install on RH9 linux box.

  • copy index.php to newindex.php
  • create index.php
  • put this "<meta http-equiv="refresh" content="0;url=https://domain.com:447/newindex.php">" in index.php
  • when you enter http://domain.com:87 this will redirect to port 447 over an ssl connection and the original index.php page


I use port 87 for http and port 447 for SSL but modify them to suit your environment.

again KMS tech support are giving out one answer but not really the correct answer. They really dont want to support any mods to to KMS webmail and insist on you rinning a reverse proxy or similar setup in front of KMS webmail :(

HTH

Des Quinn
Previous Topic: Google Desktop Search
Next Topic: SV: symantec corp edition 9.0
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Fri Nov 24 17:59:08 CET 2017

Total time taken to generate the page: 0.00444 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.