How to add a subdirectory that runs PHP scripts

From EPrints Documentation
Revision as of 20:41, 18 February 2010 by Dkane (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Make an Exception in

Go to: [eprint install dir]/archives/[archive]/cfg/cfg.d/

Amend this line to include the directory you want to make an exception for.

$c->{rewrite_exceptions} = [ '/cgi/', '/archive/', '/blog/'];

Here we are adding the directory /blog/ to the array.

Close that and open this file: [eprint install dir]/archives/[archive]/cfg/apachevhost.conf

And add the following.

Alias /blog/ /path/to/blog/ <Location "/blog">

  AddHandler php5-script php
  DirectoryIndex index.php

</Location> <Directory /path/to/blog>

  Order allow,deny
  Allow from all


Restart Apache