|
Hey All,
I'm using VirtualHosts to serve subdomains under Apache HTTP Server. I would like to map eXist, currently being served by Tomcat, to a dedicated subdomain, without specifying the port or context paths. So instead of http://mywebsite.com:8080/exist/ I can just go to http://exist.mywebsite.com/ I was able to get close to what I wanted using [this configuration](http://exist.sourceforge.net/production_web_proxying.html#d1956e342) removing the `/db/mywebsite.com/` parts, but when I try to log in to the admin panel I get (in raw HTML): `<html><head><title>XQueryServlet Error</title><link rel="stylesheet" type="text/css" href="error.css"></link></head><body><h1>Error found</h1> <div class='message'><b>Message: </b>Cannot read source file</div><div class='description'>/usr/share/tomcat7/webapps/exist/exist/admin/admin.xql</div></body></html>` …which seems to suggest the base exist/ context path is hardcoded somewhere. Is there a solution to this? I tried `mod_proxy_html` following [this tutorial](http://dltj.org/article/apache-httpd-and-tomcat/) but only got server errors. Would `mod_proxy_xml` do the trick? Or is there another, preferred method? Thanks! -Hugh ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Exist-open mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/exist-open |
|
Have you tried the setup that is documented here: http://exist-db.org/exist-stack.html#d1931e1118 ?
On Dec 19, 2011, at 8:44 PM, Hugh Guiney wrote: > Hey All, > > I'm using VirtualHosts to serve subdomains under Apache HTTP Server. I > would like to map eXist, currently being served by Tomcat, to a > dedicated subdomain, without specifying the port or context paths. So > instead of http://mywebsite.com:8080/exist/ I can just go to > http://exist.mywebsite.com/ > > I was able to get close to what I wanted using [this > configuration](http://exist.sourceforge.net/production_web_proxying.html#d1956e342) > removing the `/db/mywebsite.com/` parts, but when I try to log in to > the admin panel I get (in raw HTML): > > `<html><head><title>XQueryServlet Error</title><link rel="stylesheet" > type="text/css" href="error.css"></link></head><body><h1>Error > found</h1> > <div class='message'><b>Message: </b>Cannot read source file</div><div > class='description'>/usr/share/tomcat7/webapps/exist/exist/admin/admin.xql</div></body></html>` > > …which seems to suggest the base exist/ context path is hardcoded > somewhere. Is there a solution to this? I tried `mod_proxy_html` > following [this > tutorial](http://dltj.org/article/apache-httpd-and-tomcat/) but only > got server errors. Would `mod_proxy_xml` do the trick? Or is there > another, preferred method? > > Thanks! > -Hugh > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Exist-open mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/exist-open ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Exist-open mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/exist-open |
|
I have now. I get a 400 Bad Request.
On Mon, Dec 19, 2011 at 9:54 PM, Loren Cahlander <[hidden email]> wrote: > Have you tried the setup that is documented here: http://exist-db.org/exist-stack.html#d1931e1118 ? > > On Dec 19, 2011, at 8:44 PM, Hugh Guiney wrote: > >> Hey All, >> >> I'm using VirtualHosts to serve subdomains under Apache HTTP Server. I >> would like to map eXist, currently being served by Tomcat, to a >> dedicated subdomain, without specifying the port or context paths. So >> instead of http://mywebsite.com:8080/exist/ I can just go to >> http://exist.mywebsite.com/ >> >> I was able to get close to what I wanted using [this >> configuration](http://exist.sourceforge.net/production_web_proxying.html#d1956e342) >> removing the `/db/mywebsite.com/` parts, but when I try to log in to >> the admin panel I get (in raw HTML): >> >> `<html><head><title>XQueryServlet Error</title><link rel="stylesheet" >> type="text/css" href="error.css"></link></head><body><h1>Error >> found</h1> >> <div class='message'><b>Message: </b>Cannot read source file</div><div >> class='description'>/usr/share/tomcat7/webapps/exist/exist/admin/admin.xql</div></body></html>` >> >> …which seems to suggest the base exist/ context path is hardcoded >> somewhere. Is there a solution to this? I tried `mod_proxy_html` >> following [this >> tutorial](http://dltj.org/article/apache-httpd-and-tomcat/) but only >> got server errors. Would `mod_proxy_xml` do the trick? Or is there >> another, preferred method? >> >> Thanks! >> -Hugh >> >> ------------------------------------------------------------------------------ >> Write once. Port to many. >> Get the SDK and tools to simplify cross-platform app development. Create >> new or port existing apps to sell to consumers worldwide. Explore the >> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >> http://p.sf.net/sfu/intel-appdev >> _______________________________________________ >> Exist-open mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/exist-open > ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Exist-open mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/exist-open |
|
In reply to this post by hguiney
My preferred method is to use nginx and eXist-db in minimal mode as also described in that production article. However if you are using Apache httpd and Tomcat together you could also look at mod_jk. On Dec 20, 2011 2:45 AM, "Hugh Guiney" <[hidden email]> wrote:
Hey All, ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Exist-open mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/exist-open |
|
mod_jk and Tomcat virtual hosts were just a nightmare to get running
correctly. I solved this by deploying the eXist WAR into the root context and then just proxying to the same domain at 8080. On Tue, Dec 20, 2011 at 3:58 AM, Adam Retter <[hidden email]> wrote: > My preferred method is to use nginx and eXist-db in minimal mode as also > described in that production article. However if you are using Apache httpd > and Tomcat together you could also look at mod_jk. > > On Dec 20, 2011 2:45 AM, "Hugh Guiney" <[hidden email]> wrote: >> >> Hey All, >> >> I'm using VirtualHosts to serve subdomains under Apache HTTP Server. I >> would like to map eXist, currently being served by Tomcat, to a >> dedicated subdomain, without specifying the port or context paths. So >> instead of http://mywebsite.com:8080/exist/ I can just go to >> http://exist.mywebsite.com/ >> >> I was able to get close to what I wanted using [this >> >> configuration](http://exist.sourceforge.net/production_web_proxying.html#d1956e342) >> removing the `/db/mywebsite.com/` parts, but when I try to log in to >> the admin panel I get (in raw HTML): >> >> `<html><head><title>XQueryServlet Error</title><link rel="stylesheet" >> type="text/css" href="error.css"></link></head><body><h1>Error >> found</h1> >> <div class='message'><b>Message: </b>Cannot read source file</div><div >> >> class='description'>/usr/share/tomcat7/webapps/exist/exist/admin/admin.xql</div></body></html>` >> >> …which seems to suggest the base exist/ context path is hardcoded >> somewhere. Is there a solution to this? I tried `mod_proxy_html` >> following [this >> tutorial](http://dltj.org/article/apache-httpd-and-tomcat/) but only >> got server errors. Would `mod_proxy_xml` do the trick? Or is there >> another, preferred method? >> >> Thanks! >> -Hugh >> >> >> ------------------------------------------------------------------------------ >> Write once. Port to many. >> Get the SDK and tools to simplify cross-platform app development. Create >> new or port existing apps to sell to consumers worldwide. Explore the >> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >> http://p.sf.net/sfu/intel-appdev >> _______________________________________________ >> Exist-open mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/exist-open ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Exist-open mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/exist-open |
| Powered by Nabble | Edit this page |
