Difference between revisions of "Login-Only Repository"
Line 3: | Line 3: | ||
2. Run bin/generate_static to generate the home.html file (and others). | 2. Run bin/generate_static to generate the home.html file (and others). | ||
− | 3. Add the following to [[archives/ARCHIVEID/cfg/]]apachevhost.conf (use your site URL in the last bit): | + | 3. Add the following to [[archives/ARCHIVEID/cfg/]]apachevhost.conf (use your site URL in the last bit and replace ARCHIVEID): |
<Location ""> | <Location ""> | ||
Line 14: | Line 14: | ||
</Location> | </Location> | ||
− | <Directory "/opt/eprints3/archives/ | + | <Directory "/opt/eprints3/archives/ARCHIVEID/html/en/images"> |
order allow,deny | order allow,deny | ||
allow from all | allow from all | ||
Line 20: | Line 20: | ||
</Directory> | </Directory> | ||
− | <Directory "/opt/eprints3/archives/ | + | <Directory "/opt/eprints3/archives/ARCHIVEID/html/en/style"> |
order allow,deny | order allow,deny | ||
allow from all | allow from all | ||
Line 27: | Line 27: | ||
<LocationMatch "^/$"> | <LocationMatch "^/$"> | ||
− | Redirect / http:// | + | Redirect / http://myarchive.ac.uk/cgi/users/login?target=/home.html |
</LocationMatch> | </LocationMatch> | ||
4. Restart Apache. | 4. Restart Apache. |
Revision as of 12:41, 10 January 2007
1. In archives/ARCHIVEID/cfg/lang/en/static/ rename index.xpage to home.xpage
2. Run bin/generate_static to generate the home.html file (and others).
3. Add the following to archives/ARCHIVEID/cfg/apachevhost.conf (use your site URL in the last bit and replace ARCHIVEID):
<Location ""> AuthName "Documents Area" AuthType "Basic" PerlAuthenHandler EPrints::Apache::Auth::authen PerlAuthzHandler EPrints::Apache::Auth::authz require valid-user AuthName "Documents Area" </Location> <Directory "/opt/eprints3/archives/ARCHIVEID/html/en/images"> order allow,deny allow from all satisfy any </Directory> <Directory "/opt/eprints3/archives/ARCHIVEID/html/en/style"> order allow,deny allow from all satisfy any </Directory> <LocationMatch "^/$"> Redirect / http://myarchive.ac.uk/cgi/users/login?target=/home.html </LocationMatch>
4. Restart Apache.