Difference between revisions of "How to enable server side includes"

From EPrints Documentation
Jump to: navigation, search
(Created page with '{{Version|since=3.2.1}} Note: you must have the [http://httpd.apache.org/docs/2.0/howto/ssi.html Apache Server Side Includes (SSI)] module installed and enabled. Edit <tt>archi…')
 
Line 7: Line 7:
 
     PerlSetVar EPrints_ArchiveID myrepo
 
     PerlSetVar EPrints_ArchiveID myrepo
 
      
 
      
     AddOutputFilter INCLUDES .html
+
     <b>AddOutputFilter INCLUDES .html</b>
 
      
 
      
     Options +ExecCGI +Includes
+
     Options +ExecCGI <b>+Includes</b>
 
     Order allow,deny  
 
     Order allow,deny  
 
     Allow from all
 
     Allow from all

Revision as of 13:12, 1 April 2010

Warning This feature requires EPrints version 3.2.1 or later

Note: you must have the Apache Server Side Includes (SSI) module installed and enabled.

Edit archives/[repoid]/cfg/apache.conf and add to the <Location> section AddOutputFilter and +Includes:

 <Location "/eprints">
   PerlSetVar EPrints_ArchiveID myrepo
   
   AddOutputFilter INCLUDES .html
   
   Options +ExecCGI +Includes
   Order allow,deny 
   Allow from all
 </Location>

Restart apache.