Here is what finally worked for me:

In tomcat6 server.xml

<Host name="localhost"  appBase="/disk2/ApplicationStack/dspace-1.7.1/webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <Context path="" docBase="xmlui" />

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
               prefix="localhost_access_log." suffix=".txt" pattern="common" 
resolveHosts="false"/>
        -->
</Host>

In apache proxy_ajp.conf

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

ProxyRequests Off


ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/

Our environment is now Dspace 1.7.2 (yes, it is 1.7.2, I just upgraded today), 
Tomcat 6, and Apache 2 with mod_proxy.

So far things see to be working as expected.  Thanks for all the help!

-Philip


-------------------------
Philip Shafer
Web Developer
Rowan University
Library Services
Ph: 856-256-4418
E-mail: [email protected]

From: Scott Thurston <[email protected]<mailto:[email protected]>>
Date: Tue, 20 Sep 2011 13:18:22 -0400
To: Philip Shafer <[email protected]<mailto:[email protected]>>
Cc: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [Dspace-tech] DSpace at server root using Apache HTTPD and 
mod_proxy

Philip, this configuration works fine for me:

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
       <Host name="localhost"  appBase="/extra/data/dspace/webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
            <!-- Make the XMLUI app the default -->
            <Context path="" docBase="xmlui"/>

Our environment is DSpace 1.7.2, Tomcat 6.0.32.  I am not using Apache, however.

Regards,
Scott

On 9/20/2011 10:47 AM, Shafer, Philip wrote:

I am trying to run xmlui as the default context when someone visits our server 
root URL.  I am using tomcat6, apache httpd, and mod_proxy.

We can visit the site fine by going to http://dspace.rowan.edu/xmlui, however I 
cannot seem to configure things properly so that when a user visits 
http://dspace.rowan.edu the xmlui app is the default conext.

I hope this makes sense, I appreciate any help you can provide.

In tomcat6 server.xml I have the following set up:

<Host name="dspace.rowan.edu"  
appBase="/disk2/ApplicationStack/dspace-1.7.1/webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
               prefix="localhost_access_log." suffix=".txt" pattern="common" 
resolveHosts="false"/>
        -->

</Host>

The following is in the httpd conf:

<Location /xmlui>
        ProxyPass ajp://localhost:8009/xmlui
        ProxyPassReverse ajp://localhost:8009/xmlui
</Location>

<Location /oai>
        ProxyPass       ajp://localhost:8009/oai
        ProxyPassReverse        ajp://localhost:8009/oai
</Location>

<Location /solr>
        ProxyPass       ajp://localhost:8009/solr
        ProxyPassReverse        ajp://localhost:8009/solr
</Location>


Thanks,

-Phil

-------------------------
Philip Shafer
Web Developer
Rowan University
Library Services
Ph: 856-256-4418
E-mail: [email protected]<mailto:[email protected]>



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1



_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
Scott Thurston                  
[email protected]<mailto:[email protected]>
NOAA / NGDC / WDC               http://www.ngdc.noaa.gov/
Marine Geology & Geophysics     303-497-4411 (phone)
325 Broadway E/GC3              303-497-6513 (fax)
Boulder, CO 80305-3337

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to