<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 security.pl 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>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 29/05/2016 18:34, Edward M. Corrado
wrote:<br>
</div>
<blockquote
cite="mid:EMEW3|7c605e547de34f6a576d263b3e777df3s4SIac14eprints-tech-bounces|ecs.soton.ac.uk|CAMaLVE7xxREtUOrgT=Mee9EdoQ8ZD-6qW+XnQEBE+T11WFWKow@mail.gmail.com"
type="cite">
<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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br>
</body>
</html>