Ticket #3568 (new enhancement)
---maintenance option to bin/generate_apacheconf
| Reported by: | tmb | Owned by: | |
|---|---|---|---|
| Priority: | Would be nice | Milestone: | EPrints 3.2.10 |
| Component: | - | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by tmb) (diff)
This option should generate an auto-apache.conf that looks something like this:
<VirtualHost *:80>
ServerName <hostname>
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !^/images/
RewriteCond %{REQUEST_FILENAME} !^/style/
RewriteCond %{REQUEST_FILENAME} !^/maintenance.html
RewriteRule ^.*$ /maintenance.html [R=302,L]
DocumentRoot "/opt/eprints3/archives/ARCHIVEID/html/en/"
</VirtualHost>
With an additional VirtualHost? section for each alias:
<VirtualHost *:80> ServerName <alias> Redirect / http://<hostname> </VirtualHost>
Also similar Rewrite statements for auto-secure.conf
This would make taking repositories hosted on a server down for maintenance a case of:
- bin/generate_apacheconf --maintenance
- restart apache
- carry out maintenance
- bin/generate_apacheconf
- restart apache
- normal service restored
Change History
Note: See
TracTickets for help on using
tickets.
