title: lighttpd password protecting URL webpage
body: <p>I am trying to add some basic measures of security to the main webpage of my Raspberry Pi project hosted by lighttpd.</p>
  
  <p>I have been looking into the <code>mod_auth</code> plugin and have tried a few things however I am having some issues getting the username and password prompt to pop up when I visit my webpage.</p>
  
  <p>I have a <code>.txt</code> file called <code>details.txt</code> located under <code>/etc/lighttpd/lighttpd.users</code> containing my own simple username and password in the form <code>RobotUser:**********</code></p>
  
  <p><strong>lighttpd .conf file</strong></p>
  
  <pre><code>server.modules = (
                     *
                     *
                     *          
                     *
                     "mod_auth",
                   )  
  
  ***********************************************************  
  
  auth.backend = "plain"
  auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.users"
  auth.require = ( "10.152.1.105" =&gt;
  ( "method"   =&gt; "basic",
    "realm"    =&gt; "Authorised Users Only",
    "require"  =&gt; "user=RobotUser"
  ))
  </code></pre>
  
  <p>Now when I head over to my webpage via the IP address there is no prompt for username and password.  If i change the IP to a directory such as <code>var/www</code>, where my html webpage is located and then access <code>http://MY_IP/var/www/</code> the prompt pops up however my username and password entry from the <code>.txt</code> file does not seem to pass the prompt.</p>
  
  <p>Any ideas? This is my first time tackling something like this and through various google searches i can't overcome this step.</p>