Difference between revisions of "Login-Only Repository"

From EPrints Documentation
Jump to: navigation, search
Line 13: Line 13:
 
     AuthName "Documents Area"
 
     AuthName "Documents Area"
 
   </Location>
 
   </Location>
 
+
 
   <Directory "/opt/eprints3/archives/mbi/html/en/images">
 
   <Directory "/opt/eprints3/archives/mbi/html/en/images">
 
     order allow,deny
 
     order allow,deny
Line 19: Line 19:
 
     satisfy any
 
     satisfy any
 
   </Directory>
 
   </Directory>
 
+
 
   <Directory "/opt/eprints3/archives/mbi/html/en/style">
 
   <Directory "/opt/eprints3/archives/mbi/html/en/style">
 
     order allow,deny
 
     order allow,deny
Line 25: Line 25:
 
     satisfy any
 
     satisfy any
 
   </Directory>
 
   </Directory>
 
+
 
   <LocationMatch "^/$">
 
   <LocationMatch "^/$">
 
     Redirect / http://mbiprints.ecs.soton.ac.uk/cgi/users/login?target=/home.html
 
     Redirect / http://mbiprints.ecs.soton.ac.uk/cgi/users/login?target=/home.html

Revision as of 12:39, 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):

 <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/mbi/html/en/images">
   order allow,deny
   allow from all
   satisfy any
 </Directory>

 <Directory "/opt/eprints3/archives/mbi/html/en/style">
   order allow,deny
   allow from all
   satisfy any
 </Directory>

 <LocationMatch "^/$">
   Redirect / http://mbiprints.ecs.soton.ac.uk/cgi/users/login?target=/home.html
 </LocationMatch>

4. Restart Apache.