Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » WebServer With Kerio MailServer
  •  
Sanfoor

Messages: 5
Karma: 0
Send a private message to this user
Hi There


I just wanna ask if it's possible to have an webserver on the same computer with kerio mail server AND How can i fix it

Best Regards

Sanfoor
  •  
sonofcolin

Messages: 483
Karma: 0
Send a private message to this user
Search function is your friend.
Bind each HTTP service to a different IP.
  •  
Sanfoor

Messages: 5
Karma: 0
Send a private message to this user
hi sonofcolin

thank you for your replay, but i'm new to linux, and i didnt catch what do you mean ( each HTTP service to a different IP ) when the server has one IP

i mean WebServer AND MailServer Has the same IP


regards
  •  
Petr Dobry (Kerio)

Messages: 776
Karma: 61
Send a private message to this user
If you have only one IP available, then it's not possible to run Apache and KMS on the same IP and the same ports. You have to choose which one will run on standard port 80 (HTTP) and the second application must run on another port (81 for example). This apply also for secured HTTP on port 443.

Petr Dobry
Product Development Manager | Kerio
  •  
pwhodges

Messages: 144
Karma: 0
Send a private message to this user
In Apache, define a virtual server with name <mail.whatever.com> on port 80, and use mod_ proxy to forward it to Kerio on a different port. Works a treat here (and I have reverse proxying to other web sites in Tomcat as well). I have kerio running on port 8025, and the relevant lines of my httpd.conf are:

<VirtualHost 82.70.166.73>
ServerName mail.cassland.org
ProxyPass / http://82.70.166.73:8025/
ProxyPassReverse / http://82.70.166.73:8025/
</VirtualHost>

Paul
  •  
jackey

Messages: 12
Karma: 0
Send a private message to this user
Would this also work with https enabled?
  •  
microalps

Messages: 168
Karma: 0
Send a private message to this user
I've actually just done that successfully with the following script on Apache 2.2:
LoadModule ssl_module modules/mod_ssl.so


NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
    ServerName mail.domain.com
    ProxyRequests Off
    ProxyPass / http://localhost:60080/
    <Location />
        ProxyPassReverse /
    </Location>
</VirtualHost>

<VirtualHost *:443>
    SSLProxyEngine On
    ServerName mail.domain.com
    ProxyRequests Off
    ProxyPass / https://localhost:60443/
    <Location />
        ProxyPassReverse /
    </Location>
</VirtualHost>

  •  
YesThatAllen

Messages: 102

Karma: 4
Send a private message to this user
pwhodges wrote on Sun, 29 July 2007 14:11

In Apache,<snip> use mod_ proxy to forward it to Kerio on a different port


so, in this case, does the end user's webserver still only talk to port 80 or 443? or does the webmail user's browser start on port 80, and then switch to the alternate port?


restated: if I was behind a firewall where I could only get out on ports 80 and 443, would your trick of having KMS use the alternate port still work?

Allen Hancock
  •  
microalps

Messages: 168
Karma: 0
Send a private message to this user
The user uses external port 80 and 443, the webserver utilizes internal ports to pass on data to the user. You do not need to open additional ports for external.
  •  
lardlad

Messages: 3
Karma: 0
Send a private message to this user
Can someone please help me with this same issue on IIS? I have Kerio and the IIS server running at the same time. I can get to the webmail using https:// but not http://. Kerio's HTTP service is set to use port 81. I have set up a site in IIS for webmail but still no luck. Sorry if I didn't explain myself clearly. Any help would be greatly appreciated.

Also there is only one IP address to serve both Kerio and IIS.

[Updated on: Tue, 08 January 2008 23:36]

  •  
winkelman

Messages: 2119
Karma: 3
Send a private message to this user
lardlad wrote on Tue, 08 January 2008 23:30

I can get to the webmail using https:// but not http://.

So you can't reach your webmail through http://your-domain-or-ip-here:81? (Mind you, because you're not running on standard http port 80 anymore, you do actually have to inform your browser to use the http protocol by typing the http:// part and add the :81 part)
  •  
lardlad

Messages: 3
Karma: 0
Send a private message to this user
No. When I type in the url without the port (http://mail.mydomain.com) I get a page cannot displayed IIS 404 error message. When I I type in the url with the port (http://mail.mydomain.com:81) my browser times out. It never finds anything and then my browser just says it was taking to long to find the page.

When I go to the url using the https:// it works just fine.
  •  
winkelman

Messages: 2119
Karma: 3
Send a private message to this user
Well, you want to reach Webmail right? So http://mail.mydomain.com:81 is the URL to use.

Lot's of firewalls block non-standard ports. You're sure you do not have a firewall or overzealous anti-virus anti-worm application running on the client or the server that's blocking port 81 traffic?
  •  
lardlad

Messages: 3
Karma: 0
Send a private message to this user
The firewall was my next logical step. The server is behind a firewall so that may be the issue. Although I used the following tip <a href="http://forums.kerio.com/index.php?t=msg&goto=33684" target="_blank">ISAPI Rewrite</a> which I thought was a work around to having to add the port to the URL. Although it doesn't seem to work either. I will check into the firewall issue, but I would really like this to work by just typing in http://mail.mydomain.com. Any ideas?

[Updated on: Wed, 09 January 2008 19:46]

winkelman

Messages: 2119
Karma: 3
Send a private message to this user
lardlad wrote on Wed, 09 January 2008 19:44

... but I would really like this to work by just typing in http://mail.mydomain.com. Any ideas?

The reason you want to keep ISS is to run other websites, right? (If not, just get rid of ISS...)

You could test if at least Webmail is running properly on port 81 by opening a browser on the server itself and connecting to http://localhost:81. Then at least you know it's running ok and it must be firewalls troubling you.

Then you'd have to start configuring ISS to create an internal proxy on the specific subdomain mail.... that channels the traffic internally back and forth to port 81 while externally staying on 80.

How to do that? I don't know Cool
Previous Topic: SMTP banner (Don't show program name)
Next Topic: Exchange Account in Mac Mail 10.7 Lion
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 Nov 21 16:57:14 CET 2017

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