-
Notifications
You must be signed in to change notification settings - Fork 10
Apache in Production
Records may contain /
in the Solr id
field. Apache does not enable url encoding backslashes in urls by default. So, a record view page will result in Apache producing a [404] when returning the record because the url is constructed with the Solr id
field. The following is an example Apache config that enables url encoding blackslashes with Passenger.
<VirtualHost *:80>
ServerName warclight.archivesunleashed.org
LogLevel warn
ErrorLog /var/log/apache2/warclight.archivesunleashed.org_error.log
CustomLog /var/log/apache2/warclight.archivesunleashed.org_access.log combined
DocumentRoot /path/to/warclightdemo/public
RailsEnv production
AllowEncodedSlashes on
RewriteEngine on
<Directory "/path/to/warclightdemo/public">
Options FollowSymLinks
Require all granted
PassengerAllowEncodedSlashes On
</Directory>
</VirtualHost>
This work is primarily supported by the Andrew W. Mellon Foundation. Other financial and in-kind support comes from the Social Sciences and Humanities Research Council, Compute Canada, the Ontario Ministry of Research, Innovation, and Science, York University Libraries, Start Smart Labs, and the Faculty of Arts and David R. Cheriton School of Computer Science at the University of Waterloo.
Any opinions, findings, and conclusions or recommendations expressed are those of the researchers and do not necessarily reflect the views of the sponsors.
This project drew inspiration from the Arclight and UKWA's Shine, and would like to thank those creators and contributors.