emory-libraries/dlp-selfdeposit

View on GitHub
ansible/files/oe24.conf

Summary

Maintainability
Test Coverage
<VirtualHost *:80>
  PassengerAllowEncodedSlashes on
  Header unset Access-Control-Allow-Origin
  HostnameLookups Off
  PassengerAppEnv production
  DocumentRoot /opt/dlp-selfdeposit/current/public
  AllowEncodedSlashes NoDecode

  <IfModule mod_rewrite.c>
    RewriteEngine On
    ErrorDocument 503 /system/maintenance.html
    RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
    RewriteCond %{SCRIPT_FILENAME} !maintenance.html
    RewriteRule ^.*$ - [L,R=503]
  </IfModule>

  <Directory /opt/dlp-selfdeposit/current/public>
    Options -MultiViews
    Require all granted
  </Directory>

  RequestHeader set X_FORWARDED_PROTO 'https'
  RequestHeader set X-Forwarded-Ssl on

</VirtualHost>