<div dir="ltr">Hi David,<div><br></div><div>Thanks, that did the trick! </div><div><br></div><div>For anyone reading the archives that may have the same issue, I regenerated the static pages (./bin/generate_static/ARCHIVENAME) and restarted Apache. I'm not sure which one made a difference but at first editing the file had no effect. </div><div><br></div><div>Edward</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 29, 2016 at 12:47 PM, David R Newman <span dir="ltr"><<a href="mailto:drn@ecs.soton.ac.uk" target="_blank">drn@ecs.soton.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi Edward,</p>
<p>This will be an issue due to you using Apache 2.4 rather than
Apachee 2.2 or earlier. To resolve this you need to is find the
line that sets the variable $ip in <a href="http://security.pl" target="_blank">security.pl</a> and change it to:</p>
<p>my $version = Apache2::ServerUtil::get_server_version();<br>
$version =~ /^Apache\/([0-9]+\.[0-9]+)/;<br>
my $ip = $1 >= 2.4 ? $r->useragent_ip :
$r->connection()->remote_ip();</p>
<p>If you do not use whitelisting of IP addresses, (e.g. if you can
access files when you are on site but you want to restrict access
to people offsite) then it is probably better to just comment out
the line that that set $ip altogether.</p>
<p>Regards</p>
<p>David Newman<br>
</p><div><div class="h5">
<p><br>
</p>
<p><br>
</p>
<div>On 29/05/2016 18:34, Edward M. Corrado
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">I upgraded an old eprints server from 3.1 to the <font face="sans-serif" color="#000000"><span style="font-size:12.8px">EPrints 3.3.15. I also migrated it
to a new server running Ubuntu 14.04 LTS with new hostname
and server ip at the same time. </span></font>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px"><br>
</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px">Everything seems to be
working well except that file download restrictions do not
have any effect. Someone who is not logged in can download
any file, even if it is is marked "Restricted to
Registered users only" or "Restricted to Repository Staff
Only."</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px"><br>
</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px">Permissions on logging in and
editing files seem to work. I also tried changing the
restrictions on files to see if that would do anything but
it doesn't seem to.</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px"><br>
</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px">Does anyone have any ideas on
what to do?</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px"><br>
</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px">Edward</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px"><br>
</span></font></div>
<div><font face="sans-serif" color="#000000"><span style="font-size:12.8px"> </span></font></div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br>
</div>
<br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></blockquote></div><br></div>