Running Mingle on existing Apache (so we dont have to open ports)#308
|
|
I’d like to run Mingle and Mantis on the same server…While I have it running now on port 80 and 81, for firewall reasons I’d like to run both on port 80. Is this an option? Cheers, Mike |
|
|
Just a suggestion. We had the same issue here and got around it by front-ending the requests through a vanilla Apache server w/ mod_proxy enabled. Then we just set up two virtual hosts, one for mingle and another for mantis, and had each of them proxy all incoming requests directly to their corresponding port. That way only the Apache instance was exposed on port 80. |
|
|
There are couple of options 1. Use VirtualHost as Smerritt said and here is an example apache configuration. ( this is just a general configuration example). Please make sure you have enable mod_proxy and change mingle to run on other port than 80. eg mingle is running on port 82 and mantis is running on port 81. With this example, you can access mingle with http://mingle.example.com and mantis with http://mantis.example.com. Both mingle.example.com and mantis.example.com has the same ip address ( 1.2.3.4 ) on DNS Listen 1.2.3.4:80 </virtualhost> 2. If you really want use one hostname to serve both mingle and mantis ( ie http://www.example.com/mingle and http://www.example.com/mantis ). You can try this two approach ( The first approach won’t work all the time, so you have to test it through ) a. Same as one above but with one Virtualhost configuration b) option a) above won’t work for all applications, then you will need to use mod_proxy_html I will recommend option 1 above ( ie two virutalhosts configuration ). |
|
|
Barrow… I finally got around to trying this – no luck. I could get Apache to serve up (proxy) the pages, but no formatting or images came across, and, Mingle tries to redirect to /mingle a few times that I couldn’t get around. Anyone got this running successfully? Anything different with Mingle 2.0 (I tried this with 1.1). Cheers, Mike |
|
|
Mike, we realized the issue and mingle team is working for a fix on the coming release. stay tune and sorry for the confusion |
|
|
Ah, maybe you want to take it off of here, in that case – http://studios.thoughtworks.com/support That indicates that it is a working/supported solution. Regards, Mike |
|
|
Well, I gave mod_proxy_html 3.0.0 the old college try, but I’m deciding to punt. In case someone wants to pick up the torch here’s the config I had going for Mingle listening on localhost:8083 and an SSL virtual host:
This got me most of the way, but mod_proxy_html was choking on some of the JavaScript as in the following example:
Worked for the first Ajax.Request, but mangled the second one. Character encoding issues perhaps? The mod_proxy_html FAQ warns of this possibility. So off to setup another IP, self-signed cert, and virtual host and DNS entry. Looking forward to that fix in a future version. ~Ian |
|
|
This has been fixed in 2.0.1 and here is the instruction In Mingleedit config/jetty.xml, look for the line ( Unless you have modified this file already, you should be able to find this on line 69 ) Before you edit this file, please make a backup
and change it to
In Apache
|
|
|
Has this been tested/works for anyone else? When using this syntax, I get
|
|
|
Ok – I found the problem was I copy/pasted this code – there is a space in between http and :// I have it working… But, it is super slow. Anyone else experience this? It took 45-60 seconds to bring up the login page, and 2 mins for the first project page. If I access Mingle directly on port 81, it is much much snappier. Thanks, Mike |
|
|
You can try to use ajp instead of plain http, this could speed things up, but we are currently using http proxying on the production server and we aren’t suffering from noticeable performance issues. |
