Repository navigation
Connecting Tomcat with Apache
⚠️ This page documents DSpace v5 and is kept for reference only. For current docs, see the Home page.
There are several possibilities how to connect tomcat and apache. These include
- mod_jk
- mod_proxy
mod_proxy (_ajp or _http) is easier to configure than mod_jk. We describe it below briefly.
In apache it's just the matter of using ProxyPass (with either ajp:// or http:// and a right port number, these depend on what you configure in tomcat). Let's use ajp. Below the minimum configuration is shown, note there will be other configuration in thath file (eg. enabling shibboleth), also you should make oai available through http, so you also need to add ProxyPass to your :80 VirthualHost.
sites-enabled/https
<VirtualHost *:443>
...
ProxyRequests Off
ProxyTimeout 600
ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / http://ufal-point-dev.ms.mff.cuni.cz/
...
In tomcat server.xml enable the AJP Connector (or HTTP Connector). Example configuration of tomcat usually has a HTTP Connector available on port 8080 and AJP on 8009. Your server.xml should contain lines simmilar to these below.
Top level server element.
<Server port="8005" shutdown="XXX">
AJP Connector listening on port 8009.
<Connector address="127.0.0.1" port="8009" protocol="AJP/1.3" enableLookups="false" URIEncoding="UTF-8" />
<Engine name="Catalina" defaultHost="localhost" jvmRoute="ajp13_worker">
Default host allows loading of webapps (manager, probe) from webapps directory (relative to CATALINA_BASE)
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
A context for each of the webapps that's part of the repository (details)
<Context path="/repository/xmlui" docBase="/xxx/dspace-1.8.2/webapps/xmlui" reloadable="true" cachingAllowed="false" allowLinking="true" />
Getting Started
Features
- All Features — full categorised list
- CLARIN Licenses
- PIDs & Handles
- Featured Services / Refbox
- Field-Level Permissions
- File Previews
- Sharing a Submission
- Personal Access Tokens
- DOI Configuration per Community
- ROR Authority
Operations
- Kubernetes Deployment
- Samples (.env, Nginx)
- Nginx + Shibboleth
- Handle Server · Setup (v7)
- Shibboleth · DiscoJuice
- Shibboleth Accounts
- S3 Storage · CESNET S3
- Google Analytics
- Matomo
- Solr
- Logging
- Custom Namespace
- Health Report
For Users
Development
Reference
- Authorizations
- Metadata Info
- Citations (proposal)
- Repository Checklist
- Search, Browse & Filters
- Localization
- Importing Items (CLI)
- NFA Import - Steps
- OpenAIRE
- DOI Registration
- Inclusion in OLAC
- Unit Testing
- Deploy Checks
- Troubleshooting
- Versioning Theory
- Dynamic Resource Versioning
- Metashare Import · Schema
- Web Server Overview
- LINDAT Common Theme
- Workshop 2016 Results
- WebLicht Integration
- Google Dataset Search
Archive (v5 / stale)
- Old Home (v5)
- Installation (v5)
- Prerequisites (v5)
- Connecting Tomcat with Apache
- Using Apache
- Building Shibboleth FastCGI
- Shibboleth Install (v5)
- EUDAT Replication
- Backup (v5)
- Spring Social / Google Drive (v5)
- Clarin (→ Repository Checklist)
- Control Panel (v5)
- Overlays (v5)
- Configuration (v5)
- Speeding Up Downloads
- Debugging (v5)
- Selenium (v5)
- Code Contributions (v5)
- Best Practices (v5)
- Testing Hudson
- Working on Windows
- Prerequisites Checklist (v5)
- Migration to DSpace 7.2.1
- Upgrade From Lindat
- Piwik (→ Matomo) · Piwik Cleaning