<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; lighttpd сервер, вход по паролю]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=34173&amp;type=atom" />
	<updated>2014-03-12T08:44:09Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=34173</id>
		<entry>
			<title type="html"><![CDATA[Re: lighttpd сервер, вход по паролю]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=399625#p399625" />
			<content type="html"><![CDATA[<p>Сам спросил, сам отвечаю.<br />Оказывается недостаточно раскомментировать &quot;mod_auth&quot;, надо ещё добавить в файл /etc/lighttpd/modules.conf строку<br /></p><div class="codebox"><pre><code>include &quot;conf.d/auth.conf&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2014-03-12T08:44:09Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=399625#p399625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[lighttpd сервер, вход по паролю]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=399547#p399547" />
			<content type="html"><![CDATA[<p>Требуется запаролить вход в определённую папку HTTP сервера.<br />Вроде бы всё делаю:<br />1. В файле /etc/lighttpd/modules.conf раскомментировал модуль mod_auth<br /></p><div class="codebox"><pre><code>server.modules = (
  &quot;mod_access&quot;,
#  &quot;mod_alias&quot;,
   &quot;mod_auth&quot;,
#  &quot;mod_evasive&quot;,
#  &quot;mod_redirect&quot;,
#  &quot;mod_rewrite&quot;,
#  &quot;mod_setenv&quot;,
#  &quot;mod_usertrack&quot;,
)</code></pre></div><p>2. В файл /etc/lighttpd/conf.d/auth.conf добавил:<br /></p><div class="codebox"><pre><code>auth.backend                 = &quot;plain&quot;
auth.backend.plain.userfile  = &quot;/etc/lighttpd/lighttpd.user&quot;

auth.require               = ( &quot;/rutorrent/&quot; =&gt;
                               (
                                 &quot;method&quot;  =&gt; &quot;basic&quot;,
                                 &quot;realm&quot;   =&gt; &quot;Server Status&quot;,
                                 &quot;require&quot; =&gt; &quot;user=username&quot;
                               )
                             )</code></pre></div><p>3. В файл /etc/lighttpd/lighttpd.user прописал username:password.<br /></p><div class="codebox"><pre><code>-rw------- 1 lighttpd lighttpd 16 мар 11 17:09 /etc/lighttpd/lighttpd.user</code></pre></div><p>4. Сервер перезапустил.</p><p>Но всё равно пароль не запрашивается.</p><p>Подскажите, что я упустил?</p>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2014-03-12T05:23:46Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=399547#p399547</id>
		</entry>
</feed>
