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

"secure" VirtualHost doesn't set EPrints_ArchiveID in http_root if different from https_root #366

Closed
phluid61 opened this issue Nov 30, 2015 · 2 comments
Labels

Comments

@phluid61
Copy link
Contributor

@phluid61 phluid61 commented Nov 30, 2015

EPrints::Apache::apache_secure_conf generates a <Location "$https_root"/> block which includes the EPrints_ArchiveID variable.

If $http_root ne $https_root, there is no equivalent block (or EPrints_ArchiveID variable) in the HTTPS virtual host configuration for the $http_root location.

This means that HTTPS requests to locations under $http_root (but not $https_root) are not handled by EPrints.

@phluid61
Copy link
Contributor Author

@phluid61 phluid61 commented Nov 30, 2015

This can be worked around by manually copying the <Location "..."/> block from the generated (:80) config file, and pasting it verbatim into your local :443 virtualhost configuration (i.e. the same place you set up SSLCertificateFile, etc. directives)

phluid61 added a commit to QUTlib/eprints that referenced this issue Nov 30, 2015
Adds a <Location/> chunk for the http_root, inside the :443 VirtualHost.
Part of eprints#366
@phluid61
Copy link
Contributor Author

@phluid61 phluid61 commented Nov 30, 2015

I've just worked out that our repository is still using the base_url and friends config; I'll look at updating that to http_root &c. before confirming that the referenced commit 0ac99fd is useful.

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

Successfully merging a pull request may close this issue.

None yet
1 participant