<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 10/04/2017 02:19 PM, Ian Evans
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABiY0=hdK0C5a7gCFgCej3KQ+_qvz-rTyz79MwskNDrK=RsBEg@mail.gmail.com">
<div dir="ltr">I haven't really used apache much, run my site on
nginx, so I'm just trying to secure mythweb (and eventually
zoneminder and phpmyadmin when I install them) to be local
access only so I can tunnel in via ssh.
<div><br>
</div>
<div>From my Googling I thought this would work in the
myhtweb.conf:</div>
<div><br>
</div>
<div>
<div> <Directory "/var/www/html/mythweb" ></div>
<div><br>
</div>
<div>
############################################################################</div>
<div> # I *strongly* urge you to turn on authentication for
MythWeb. It is disabled</div>
<div> # by default because it requires you to set up your
own password file. Please</div>
<div> # see the man page for htdigest and then configure
the following four directives</div>
<div> # to suit your authentication needs.</div>
<div> #</div>
<div> AuthType Digest</div>
<div> AuthName "MythTV"</div>
<div> AuthUserFile /etc/mythtv/htdigest<br>
</div>
<div> Require valid-user</div>
<div> BrowserMatch "MSIE"
AuthDigestEnableQueryStringHack=On</div>
<div>Require local<br>
</div>
</div>
<div>Satisfy all</div>
<div><br>
</div>
<div>Etc.</div>
<div><br>
</div>
<div>But after restarting apache I'm still able to access
mythweb from a computer outside localhost.</div>
<div><br>
</div>
<div>Any ideas? Thanks.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
This is what I use<br>
<br>
require ip 127.0.0.1 192.168.0.0/16<br>
<br>
You will need to adjust 192.168.0.0/16 if your router is allocating
different ip address range<br>
<br>
This excludes all access from outside of my own local network.<br>
<br>
If you only want access from localhost <br>
require ip 127.0.0.1<br>
<br>
Peter<br>
<br>
</body>
</html>