This is challenging to do directly in MarkLogic. MarkLogic does have URL rewriting, but it doesn't really have a proxy in it today.
That said it's not unusual to put a copy of Apache in front of MarkLogic for this exact purpose on your production server. This is, in fact, how our developer site is set up. If you're willing to deploy Apache, you just configure mod_rewrite (which will do both URL rewriting and proxy-ing) based either on incoming request hostname or path to send requests to one of N MarkLogic application servers (all potentially on the same box). One minor drawback to this is that all requests coming into MarkLogic will appear to be coming from a single IP address (as the external requests will all go to Apache). You can get Apache to add the X-Forwarded-For header to the request, should you need that information in your application. Best, -Eric Eric Bloch [email protected]<mailto:[email protected]> On Feb 28, 2011, at 8:55 AM, Anderson, Dr. Clifford wrote: Hi All, We are planning to deploy a new application to our production server. On our development server, we’ve been using port 8009 to host the HTTP server. On our production server, we’d like to put this new application on 80. The only problem is that we already have an application running on 80. It would be problematic, on the one hand, to try to host both applications on 80 because we have different error.xqy and rewrite.xqy handlers. We have also set up different ML databases for each application. On the other hand, we do not want users to be directed to a port other than 80, at least not knowingly. (If we could hide the port from users, that would be OK). Does anyone have any suggestions about how we might proceed? Is there a way to filter incoming HTTP requests filter by host headers? Thanks very much in advance, Cliff _______________________________________________ General mailing list [email protected]<mailto:[email protected]> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
