Dear All,
I would like to ask some clarifications regarding deploying OAI in DSpace 7. I read in the
OR2021: DSpace 7 QA about this, specifically question no. 33:
Question: How much does Dspace7 affects the OAI webapp, it seems that the path has to be server/oai?
Answer: The path is based on the path of the server webapp, but you can configure both. So, the server webapp could be deployed at “/” (root), and your OAI path can be configured to be “pmh” (change ‘oai.path’ config), which would put the OAI service at “/pmh”. So, the path is dependent on your setup & not required to be “/server/oai”.
My question is, what if I want to retain my old repository's OAI base URI which is for example
https://myrepository/oai but at the same time I'll also install the frontend in the same server?
Looking at the documentation on the sample VirtualHost configuration, I'm confused on what would be the correct configuration to proxy requests to Tomcat and to the frontend if I don't want to use '/server/oai' path? I already deployed the server webapp at '/' (root) in Tomcat.
Example VirtualHost for installing the backend:
<VirtualHost _default_:443>
…
# Proxy all HTTPS requests to "/server" from Apache to Tomcat via AJP connector
ProxyPass /server ajp://localhost:8009/server
ProxyPassReverse /server ajp://localhost:8009/server
…
</VirtualHost>
In order to retain my repository's old OAI base URI, then I assume the configuration for ProxyPass and ProxyPassReverse should look like this(?):
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
Since I will also install the front end in the same server, would the above configuration be in conflict with the frontend since both configurations would proxy the path '/'?
Recommended configuration for frontend:
You might say that why not just use the default configuration and be contented with '/server/oai/'. I asked this question because our repository is being harvested by other institutions and I think it would be impractical to tell the harvesting institution to manually change the OAI server in each of the harvested communities/collections.
I hope my use case is clear and I hope someone from the list can provide tips on how to modify the VirtualHost configurations in order to achieve my goals.
Thanks in advance and best regards!
euler