<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Rewrite_Exceptions</id>
	<title>Rewrite Exceptions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Rewrite_Exceptions"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Rewrite_Exceptions&amp;action=history"/>
	<updated>2026-05-05T20:24:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Rewrite_Exceptions&amp;diff=14260&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk at 17:57, 22 January 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Rewrite_Exceptions&amp;diff=14260&amp;oldid=prev"/>
		<updated>2022-01-22T17:57:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:57, 22 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== See Also ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== See Also ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Custom &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Handler&lt;/del&gt;]] - Useful if you have Perl handlers separate to the main EPrints codebase (e.g. Pure's PDA handler) that you want to integrate with EPrints.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Custom &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;handlers&lt;/ins&gt;]] - Useful if you have Perl handlers separate to the main EPrints codebase (e.g. Pure's PDA handler) that you want to integrate with EPrints.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Howto]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Howto]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Rewrite_Exceptions&amp;diff=14259&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added page about rewrite exceptions.</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Rewrite_Exceptions&amp;diff=14259&amp;oldid=prev"/>
		<updated>2022-01-22T17:56:21Z</updated>

		<summary type="html">&lt;p&gt;Added page about rewrite exceptions.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There will sometimes be requirements to exclude EPrints from handling requests that are on a certain path.  A good example of this is if you are setting up [[Shibboleth]] authentication.  &lt;br /&gt;
&lt;br /&gt;
To prevent EPrints from trying to handle a request for a specific path you will need to add this path to a configuration file for your archive's '''cfg/cfg.d/''' directory or if you have multiple archives on the same EPrints instance in '''site_lib/cfg/cfg.d/'''.  This file should have the following contents, where ''resource'' is the path you do not want EPrints to handle:&lt;br /&gt;
&lt;br /&gt;
 push @{$c-&amp;gt;{rewrite_exceptions}}, &amp;quot;/resource/&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
As well as ignoring requests for ''/resource/'' it will also ignore and requests under this path (e.g. ''/resource/thing'').  &lt;br /&gt;
&lt;br /&gt;
Once you have finished editing this file, you only need to reload the webserver to load the rewrite exception.  You should not need to run [[API:bin/generate_apacheconf|generate_apacheconf]].  If you have not already modified your non-EPrints Apache webserver configuration (e.g. in ''/etc/httpd/conf.d/'') then if you now request the path in the exception you will get an Apache not found error page rather than an EPrints one.  You can then modify your Apache webserver configuration.  Maybe a bit like [[Shibboleth#Configuring_Apache_and_EPrints|Shibboleth]] authentication.  &lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Custom Handler]] - Useful if you have Perl handlers separate to the main EPrints codebase (e.g. Pure's PDA handler) that you want to integrate with EPrints.&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto]]&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
</feed>