Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web server rewrites/redirects modification for Apache 2.4.x #543

Closed
alessandroenea opened this issue May 9, 2016 · 1 comment
Closed
Milestone

Comments

@alessandroenea
Copy link

alessandroenea commented May 9, 2016

In the official document:
https://github.com/ufal/lindat-dspace/wiki/Repository-Checklist
the block:
"For accept header cmdi and query string format=cmdi. In apache it's as follows:"
contains this two lines:

RewriteCond %{QUERY_STRING} format=cmdi [NC]
RewriteRule ^(.*)/xmlui/handle/(.*)$ https://%{HTTP_HOST}$1/oai/cite?metadataPrefix=cmdi&handle=$2 [L,R=301]

which don't work with our Apache 2.4.7.

We changed them as follows:

RewriteCond %{QUERY_STRING} format=cmdi [NC]
RewriteCond %{REQUEST_URI} ^(.*)/xmlui/handle/(.*)$
RewriteRule ^(.*)/xmlui/handle/(.*)$ https://%{HTTP_HOST}$1/oai/cite?metadataPrefix=cmdi&handle=$2 [R,L]
@kosarko kosarko added this to the 2016.09 milestone Aug 29, 2016
@kosarko
Copy link
Member

kosarko commented Sep 21, 2016

I've put a link back to this issue from the wiki in case someone else has similar issue.

However, I've tested it with Server version: Apache/2.4.18 (Ubuntu) and it seemed ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants