Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Port Redirection in VHost Help Requested |
|
Author |
|
SampleX
Joined: 23 Sep 2008 Posts: 1
|
Posted: Tue 23 Sep '08 12:56 Post subject: Port Redirection in VHost Help Requested |
|
|
Hi there...
N00b here, struggling through a steep learning curve...
I have an issue needs solving and I don't know how to do it.
I have a single server box, running Server2k3. This box runs BPFTP, Apache (AMP) and Kerio Mail Server.
Kerio Mail Server also contains a HTTP server in order to run webmail, so what I did to avoid confusion with Apache was to create the following Vhost rule and to set the HTTP Webmail port in Kerio to port 10316:
##### webmail MYSERVER.co.uk #####
<VirtualHost *>
ServerName webmail.MYSERVERDOMAINNAME1.co.uk
ServerAlias webmail.MYSERVERDOMAINNAME2.co.uk
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{HTTP_HOST} ^webmail\.MYSERVER\.co\.uk [NC,OR]
RewriteCond %{HTTP_HOST} ^webmail\.MYSERVER\.co\.uk [NC]
RewriteRule ^(.*) http://MYSERVER.co.uk:10316$1 [P,L]
</VirtualHost>
This rule works like a charm, and of course when I punch 'webmail.myserver.co.uk' into any web browser, which thinks it is acting on port 80, I get a seamless invisible rewrite courtesy of Apache.
This is where things get infinitely more complicated for me, and no doubt leave many of you guys thinking 'what's this idiots problem, can't he see the forest for the trees?'
In syncing between Outlook and Kerio Mailserver for Calendar Synchronisation, the Kerio Sync plugin has the option of synchronising securely (via SSL). While ever Kerio Mailserver is set to HTTPS on 443, this feature works fine. However, in looking to free up port 443 for Apache Web Server, I've assigned Kerio port 10317 for HTTPS, and at this point Kerio Sync plugin falls down, as well as browser based webmail via SSL (without handing out the port number and hoping employees remember to punch it in), because you cannot specify a specific port, clicking the 'test connection' button in the Kerio Sync plug in obviously fails because it isn't making its connection...
I need something foolproof which will work for both the Kerio Sync Plugin Connection Request and also a generic https://webmail.mydomain.co.uk set up in Apache by way of either a rewrite or a redirect for port 443 traffic on this specific vhost/domain name, through to port 10317 on the same domain/vhost...
Can anyone spare ten seconds of expert time to be completely unchallenged, and tell me what code snippet I need to achieve this...
Thanks in advance,
SampleX
Ultra-n00b |
|
Back to top |
|
|
|
|
|
|