Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Can you host a web site on your Kerio server? (Virtual hosting on a KMS box)
  •  
mdhmi

Messages: 62
Karma: 0
Send a private message to this user

I have a customer who might want to host their company web site on the same physical server that is slated to be their KMS box.

This will be run on a Linux platform.

I know this can be done with VMWare, but I'm hoping there might be a less costly (both in terms of dollars and administrative overhead) solution.

WebMail, by default listens on 80/443, so if their company web site needs 80 can I just disable port 80 in KMS and let Apache serve on that port?

I'm mentally kicking around a few ideas - VMWare, UML, maybe a chrooted jail for Apache, etc..

Has anyone else run into this? If so how did you approach it?

Thanks,

Mark
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
You can just change the listening port of Kerio HTTP server (for example 8080), and let apache mange virtual hosts. When people connect to www.mycompany.com they'll have the company website, when they connect to webmail.mycompany.com, apache will redirect the request to the 8080 Kerio HTTP port.

I use the same mechanism for redirecting people from the 80 to the HTTPS (443) port, so they won't have to remember to type https://.
Here is the Vistual Host config :
<VirtualHost *:80>
  ServerName toto.lan
  CustomLog /var/log/apache2/toto-access.log combined
  ErrorLog /var/log/apache2/toto-error.log
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteLog /var/log/apache2/https_rewrite.log
    RewriteLogLevel 1
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
  </IfModule>
</VirtualHost>
Previous Topic: KMS resilience on Linux
Next Topic: Address Book Sort and Display Order
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: Tue Sep 26 23:50:42 CEST 2017

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