<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://andromeda.df.lu.lv/wiki/index.php?action=history&amp;feed=atom&amp;title=Apache%3Ahtaccess</id>
	<title>Apache:htaccess - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://andromeda.df.lu.lv/wiki/index.php?action=history&amp;feed=atom&amp;title=Apache%3Ahtaccess"/>
	<link rel="alternate" type="text/html" href="http://andromeda.df.lu.lv/wiki/index.php?title=Apache:htaccess&amp;action=history"/>
	<updated>2026-04-17T01:59:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://andromeda.df.lu.lv/wiki/index.php?title=Apache:htaccess&amp;diff=553&amp;oldid=prev</id>
		<title>Leo at 12:41, 11 March 2009</title>
		<link rel="alternate" type="text/html" href="http://andromeda.df.lu.lv/wiki/index.php?title=Apache:htaccess&amp;diff=553&amp;oldid=prev"/>
		<updated>2009-03-11T12:41:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:41, 11 March 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt; cd ~/public_html&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt; cd ~/public_html&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt; mkdir mysecretdir&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt; mkdir mysecretdir&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-deletedline diff-side-deleted&quot;&gt;&lt;div&gt; chmod g+&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;r,g+x,o-r&lt;/del&gt;,o-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;x&lt;/del&gt; mysecretdir&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt; chmod g+&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;rx&lt;/ins&gt;,o-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;rx&lt;/ins&gt; mysecretdir&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt; chgrp www-data mysecretdir&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt; chgrp www-data mysecretdir&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt; cd mysecretdir&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt; cd mysecretdir&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
		
	</entry>
	<entry>
		<id>http://andromeda.df.lu.lv/wiki/index.php?title=Apache:htaccess&amp;diff=552&amp;oldid=prev</id>
		<title>Leo: New page: Create the new &#039;&#039;&#039;directory&#039;&#039;&#039;.  &lt;br&gt;Make sure the permissions prohibit public access, except by the webserver.    cd ~/public_html  mkdir mysecretdir  chmod g+r,g+x,o-r,o-x mysecretdir  c...</title>
		<link rel="alternate" type="text/html" href="http://andromeda.df.lu.lv/wiki/index.php?title=Apache:htaccess&amp;diff=552&amp;oldid=prev"/>
		<updated>2009-03-11T12:25:22Z</updated>

		<summary type="html">&lt;p&gt;New page: Create the new &amp;#039;&amp;#039;&amp;#039;directory&amp;#039;&amp;#039;&amp;#039;.  &amp;lt;br&amp;gt;Make sure the permissions prohibit public access, except by the webserver.    cd ~/public_html  mkdir mysecretdir  chmod g+r,g+x,o-r,o-x mysecretdir  c...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Create the new &amp;#039;&amp;#039;&amp;#039;directory&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;Make sure the permissions prohibit public access, except by the webserver.&lt;br /&gt;
 &lt;br /&gt;
 cd ~/public_html&lt;br /&gt;
 mkdir mysecretdir&lt;br /&gt;
 chmod g+r,g+x,o-r,o-x mysecretdir&lt;br /&gt;
 chgrp www-data mysecretdir&lt;br /&gt;
 cd mysecretdir&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create the &amp;#039;&amp;#039;&amp;#039;.htaccess&amp;#039;&amp;#039;&amp;#039; file with the following content (edit as appropriate). &lt;br /&gt;
&amp;lt;br&amp;gt;Use &amp;#039;Allow from your.domain.name&amp;#039; to restrict access from the local users only.&lt;br /&gt;
&lt;br /&gt;
 AuthName &amp;quot;Password Required&amp;quot;&lt;br /&gt;
 AuthUserFile /home/.../public_html/mysecretdir/.htpasswd&lt;br /&gt;
 AuthType basic&lt;br /&gt;
 Require valid-user&lt;br /&gt;
 Order deny,allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 Allow from your.domain.name&lt;br /&gt;
 Satisfy Any&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Files .htaccess&amp;gt;&lt;br /&gt;
 order allow,deny&lt;br /&gt;
 deny from all&lt;br /&gt;
 &amp;lt;/Files&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create the &amp;#039;&amp;#039;&amp;#039;.htpasswd&amp;#039;&amp;#039;&amp;#039; file and users. The htpasswd programm will ask for the new passwords. &lt;br /&gt;
&amp;lt;br&amp;gt;Use -c switch only for the first user.&lt;br /&gt;
&lt;br /&gt;
 htpasswd -c .htpasswd myuser1&lt;br /&gt;
 htpasswd .htpasswd user2&lt;br /&gt;
 htpasswd .htpasswd user3&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
		
	</entry>
</feed>