LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] Interworx integration for webmail

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2012, 07:51 AM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
Default [solved] Interworx integration for webmail

Guys. So far everything rocks with litespeed. Using it production-wise. Just have some minor glitches, like the mod_rewrite for wordpress issue (separate thread), and not getting the webmail at port 80.

Basically, with interworx, webmail is at port 2443, the default for their internal webserver I think. However, with apache, I think it's being proxied (mod_proxy as per interworx reply) to be accessible at port 80, like http://domain.com/webmail. This is done automatically and no webmail folder really exists per website.

However, with the switch to litespeed, webmail is no longer accessible at port 80, and now our clients have to go through port 2443, which everyone of my clients hate. Anyway I can get litespeed to work the same way? Any suggestions? Below is the response I got form interworx support, hoping that helps as well

Here are my questions to them and their reply, hopefully some can chime in....

1. webmail is no longer accessible from domain.com/webmail. Now I have to
put the port 2443 to access webmail. Before with apache, webmail was in port 80
at domain.com/webmail

The apache configuration for webmail at port 80 is in the /etc/httpd/conf.d/iworx.conf. It uses apache's mod_proxy, so my best guess is that litespeed doesn't handle that apache configuration? Perhaps the litespeed folks could provide an alternative.

2. webserver part of nodeworx is empty. I mean the RRD graphs now looks like no traffic at all....

This is because that particular graph is generated from the mod_watch apache module, which litespeed doesn't support. There's not much we can do about this one unfortunately.

Last edited by NiteWave; 02-15-2012 at 06:50 PM..
Reply With Quote
  #2  
Old 02-01-2012, 11:37 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
for mod_proxy, please check proxy-host at our knowledge base (https://store.litespeedtech.com/stor...yarticle&id=21)
Reply With Quote
  #3  
Old 02-01-2012, 11:40 AM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
Thanks! but what do I do with it and where do I put it?
Reply With Quote
  #4  
Old 02-01-2012, 12:03 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
you need to
1. create a web server external app (e.g. name: webmail, addr: server_address:2443) at server level.
2. create rewrite rule in .htaccess under domain docroot.
Quote:
RewriteRule ^(.*)$ http://webmail/$1 [P,E=Proxy-Host:domain.com]
Reply With Quote
  #5  
Old 02-01-2012, 12:54 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
I have added the external app. I created the .htaccess file. I get a 500 error. My .htaccess located in my ./html folder is

RewriteEngine On
RewriteRule ^(.*)$ http://webmail/$1 [P,E=Proxy-Host:domainxyz.com/webmail]

Anything I'm doing wrong?

EDIT: What's worse is the domain itself becomes accessble with a 500 error once I have the rewriterule in place.

Last edited by bangsters; 02-01-2012 at 01:27 PM..
Reply With Quote
  #6  
Old 02-15-2012, 02:24 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
I got a workaround by using a subdomain. works like a charm.

however, it is only for http proxying....

any idea when litespeed will support proxy for https?
Reply With Quote
  #7  
Old 02-15-2012, 02:33 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Proxy through https is not a priority item. You can use https as frontend interface with user and have backend proxy through http as a workaround.
Reply With Quote
  #8  
Old 02-15-2012, 02:41 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
HI.

How can I do that? I meant having the front end in https?

Last edited by bangsters; 02-15-2012 at 04:40 PM..
Reply With Quote
  #9  
Old 02-15-2012, 04:51 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
create a vhost for https like https://sub.domain.com/webmail
Reply With Quote
  #10  
Old 02-15-2012, 04:57 PM
bangsters bangsters is offline
Member
 
Join Date: Dec 2011
Posts: 40
That is how i did it I think....

I created a vhost with a dedicated IP in portal.domainxyz.com/webmail. Then I created an .htaccess file inside that subdomain containing:

RewriteRule ^(.*)$ https://webmail/$1 [P] #,E=Proxy-Hostortal.domainxyz.com]

In the litespeed backend, do I still use webmail with 127.0.0.1:2080 (http) or 127.0.0.1:2443? I currently left it at port 2080 since it should be http.

But I'm getting a 500 error. what am i doing wrong?

Last edited by bangsters; 02-15-2012 at 05:13 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:22 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.