Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » OS Lion - Apache and Kerio webmail services (Keeping apache alive to host websites and directing traffic to webmail)
  •  
Cybervanes

Messages: 4
Karma: 0
Send a private message to this user
Is there any way to keep Apache alive to host websites but still be able to direct specific traffic to Kerio webmail services?

Eg. www.domain.com to the Apache hosted website

Mail.domain.com to go to Kerio hosted webmail

Thanks in advance Cool
  •  
Cybervanes

Messages: 4
Karma: 0
Send a private message to this user
I've got apache using port 80

Kerio HTTP service is listening on port 81

How do I get apache to redirect the request for mail.domain.com to port 81?

[Updated on: Thu, 06 October 2011 03:42]

  •  
topher1078

Messages: 54
Karma: 0
Send a private message to this user
Instead of directing to port 81, why not direct to port 443 and use https for webmail instead? It's a good idea to limit webmail to the secure connection anyways.
  •  
Maynick

Messages: 4
Karma: 2
Send a private message to this user
I would love the ability do this. I had trouble on a recent new install on SL 10.6.8. I had to change the Apache services to 5xxxx (just picked a random port) to get Kerio up and running.
  •  
mr.mars

Messages: 2
Karma: 0
Send a private message to this user
this could be done by apache when you set virtual host. Look at this topic at the botton, there is solution for your problem

www.linuxquestions.org/questions/linux-networking-3/apache-f orward-request-to-another-box-264864/
  •  
Cybervanes

Messages: 4
Karma: 0
Send a private message to this user
I don't really want to use 443 as I may want to secure sites being hosted on the server.

Mr. Mars, looks like that solution would work. However I have the admin tools that came with lion authoring Apache, and I don't understand all the extra files that it creates nor do i know where to add the script outlined in your link.

I'm going to revert to OS X 10.6 server and use a reverse proxy with the tools included with that version.
  •  
benjalamelami

Messages: 157

Karma: 5
Send a private message to this user
Hello. Mine is Windows... but its the same for every OS I think:
<virtualhost *:80>
 ServerName http://sub.domain.com:80
 ServerAlias alias1.domain.com:80 alias2.domain.com:80
 ProxyRequest off
 ProxyPreserveHost On
 SetEnv proxy-sendchunked 1
 SetEnv proxy-sendcl 1
 SetEnv force-proxy-request-1.0 1
 SetEnv proxy-nokeepalive 1
 ProxyPass / http://local.domain/
 ProxyPassReverse / http://local.domain/
</VirtualHost>


I do that for every subdomain within my environment. I have one an intranet server, another for in-house applicaction, another for the blackberry server, another for a portal that I made for all apps. I dont know however if the mailserver works behind this... So I have it router to the secure port which no other apps use. The code for the host.conf for redirecting to a specific port is:
<VirtualHost *:80>
 ServerName http://sub2.domain.com
 ServerAlias aliasx.domain.com
 ProxyRequests Off
 Redirect permanent / https://another.domain.com/
</VirtualHost>


Hope this helps
Previous Topic: Kerio SaaS details on website
Next Topic: Trigger agenda synchronisation server-side
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 06:40:54 CET 2017

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