On Wed, Mar 25, 2009 at 03:49:51PM +0200, Sean Carte wrote: > I've been trying to use Apache and mod_proxy to redirect queries to > port 80, following the instructions at > http://wiki.dspace.org/index.php/DspaceOnStandardPorts > > I've got everything working so long as I browse to /xmlui. Going to > the server's root page simply gives me a blank screen. > > This is documented in the wiki as follows: > " > In order to display the dspace home page, not the tomcat home page > when accessing http://rose.bris.ac.uk > > 1. Create a page called HelloWorld.jsp in the directory below: > > $CATALINA_HOME/webapps/ROOT/ > > 2. Add the following lines to the HelloWorld.jsp: > > <% response.sendRedirect("/dspace/"); %> > > Next. In the same directory, add the following to index.jsp just after > the <body> tag:- > > <body> > <jsp:forward page="HelloWorld.jsp"/> > > 3. Edit: ../ROOT/WEB-INF/web.xml, disable the following text as follows: > > > 4. Re-start tomcat > "
That's an interesting approach. When I want a Tomcat app. at the
root, I create a Context descriptor file for it. Let's say I have
DSpace installed at /opt/dspace and I want its XMLUI to appear at the
root. Here Tomcat's configuration directory is /etc/tomcat-6, but
that may be different for you so make the appropriate substitution. I
create /etc/tomcat-6/Catalina/localhost/ROOT.xml:
<Context docBase='/opt/dspace/webapps/xmlui'>
<Parameter
name="dspace-config"
value="/opt/dspace/config/dspace.cfg"
description="Path to the DSpace configuration file." />
</Context>
and Tomcat will use /opt/dspace/webapps/xmlui as the root application.
When you do this, don't use a docBase that's within the Host's appBase
(typically $CATALINA_HOME/webapps), or Tomcat will assume that *it*
created the XML file and may delete it when you restart the
application using the manager, or touch any of several files within
the app. that Tomcat may be watching for signs of freshness. Just use
the installed DSpace webapps/* directly instead of copying them to
Tomcat's webapps directory.
> I did find something in the archives that suggested:
>
> "
> redirect tomcat's ROOT webapp to dspace using a symlink:
>
> ln -s /tomcat/home/webapps/ROOT /your/dspace/installation/webapps/jspui
> "
>
> I tried that, but it didn't work, I used `ln -s /dspace/webapps/ROOT
> /dspace/webapps/xmlui`.
That is backwards. 'ln EXISTING_FILE NEW_NAME'. In your case,
EXISTING_FILE is /dspace/webapps/xmlui.
--
Mark H. Wood, Lead System Programmer [email protected]
Friends don't let friends publish revisable-form documents.
pgpwqvpRHWu4F.pgp
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

