https://wiki.uniformserver.com/index.php?title=Authentication:_Preparation&feed=atom&action=history
Authentication: Preparation - Revision history
2024-03-29T16:02:37Z
Revision history for this page on the wiki
MediaWiki 1.41.0
https://wiki.uniformserver.com/index.php?title=Authentication:_Preparation&diff=3725&oldid=prev
Ric: /* Summary */
2009-04-23T15:57:53Z
<p><span dir="auto"><span class="autocomment">Summary</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:57, 23 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l149">Line 149:</td>
<td colspan="2" class="diff-lineno">Line 149:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{|</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{|</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| [[Image:uc_small_logo.gif]] || [[User:<del style="font-weight: bold; text-decoration: none;">WikiSysop</del>|Ric]]</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| [[Image:uc_small_logo.gif]] || [[User:<ins style="font-weight: bold; text-decoration: none;">Ric</ins>|Ric]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Uniform Server 4.0-Mona]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: Uniform Server 4.0-Mona]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: UniCenter]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category: UniCenter]]</div></td></tr>
</table>
Ric
https://wiki.uniformserver.com/index.php?title=Authentication:_Preparation&diff=3718&oldid=prev
Ric: New page: {{Uc nav Authentication}} '''Preparation''' To explore directory authentication we require a few folders to work with. This page provides details for setting up a working structure includ...
2009-04-23T15:49:40Z
<p>New page: {{Uc nav Authentication}} '''Preparation''' To explore directory authentication we require a few folders to work with. This page provides details for setting up a working structure includ...</p>
<p><b>New page</b></p><div>{{Uc nav Authentication}}<br />
'''Preparation'''<br />
<br />
To explore directory authentication we require a few folders to work with. This page provides details for setting up a working structure including htaccess files I have purposefully kept the files as small as possible. We are not interested in great works of art hence the minimalist approach.<br />
<br />
== Structure ==<br />
We are going to set-up a folder structure for the following users John, Dave Smith, Dawn and Ruth Smith as follows:<br />
<br />
=== John ===<br />
* Create a new folder UniServer\udrive\www\'''john''' <br />
* Copy file UniServer\udrive\www\'''.htaccess''' to folder '''john'''<br />
* Edit '''.htaccess''' delete all lines above the authentication block.<br />
* Edit the four lines as shown:<br />
<pre><br />
AuthName "Uniform Server - Server Access"<br />
AuthType Basic<br />
AuthUserFile /htpasswd/www/.htpasswd<br />
Require user John<br />
</pre><br />
Create a new text file '''index.html''' in folder '''john''' add the following text:<br />
<pre><br />
<html><head><title>John</title></head><br />
<body><h1>John</h1><br />
<p><a href="http://localhost/../">Home</a></p><br />
<p><a href="http://localhost/../john/">John</a></p><br />
<p><a href="http://localhost/../dave_smith/">Dave Smith</a></p><br />
<p><a href="http://localhost/../dawn/"">Dawn</a></p><br />
<p><a href="http://localhost/../ruth_smith/">Ruth Smith</a></p><br />
</body></html><br />
</pre><br />
<br />
'''''[[#top | Top]]'''''<br />
=== Dave Smith ===<br />
* Create a new folder UniServer\udrive\www\'''dave_smith''' <br />
* Copy file UniServer\udrive\www\'''.htaccess''' to folder '''dave_smith'''<br />
* Edit '''.htaccess''' delete all lines above the authentication block.<br />
* Edit the four lines as shown:<br />
<pre><br />
AuthName "Uniform Server - Server Access"<br />
AuthType Basic<br />
AuthUserFile /htpasswd/www/.htpasswd<br />
Require user "Dave Smith"<br />
</pre><br />
Create a new text file '''index.html''' in folder '''dave_smith''' add the following text:<br />
<pre><br />
<html><head><title>Dave Smith</title></head><br />
<body><h1>Dave Smith</h1><br />
<p><a href="http://localhost/../">Home</a></p><br />
<p><a href="http://localhost/../john/">John</a></p><br />
<p><a href="http://localhost/../dave_smith/">Dave Smith</a></p><br />
<p><a href="http://localhost/../dawn/">Dawn</a></p><br />
<p><a href="http://localhost/../ruth_smith/">Ruth Smith</a></p><br />
</body></html><br />
</pre><br />
<br />
'''''[[#top | Top]]'''''<br />
=== Dawn ===<br />
* Create a new folder UniServer\udrive\www\'''dawn''' <br />
* Copy file UniServer\udrive\www\'''.htaccess''' to folder '''dawn'''<br />
* Edit '''.htaccess''' delete all lines above the authentication block.<br />
* Edit the four lines as shown:<br />
<pre><br />
AuthName "Uniform Server - Server Access"<br />
AuthType Basic<br />
AuthUserFile /htpasswd/www/.htpasswd<br />
Require user Dawn<br />
</pre><br />
Create a new text file '''index.html''' in folder '''dawn''' add the following text:<br />
<pre><br />
<html><head><title>Dawn</title></head><br />
<body><h1>Dawn</h1><br />
<p><a href="http://localhost/../">Home</a></p><br />
<p><a href="http://localhost/../john/">John</a></p><br />
<p><a href="http://localhost/../dave_smith/">Dave Smith</a></p><br />
<p><a href="http://localhost/../dawn/">Dawn</a></p><br />
<p><a href="http://localhost/../ruth_smith/">Ruth Smith</a></p></body></html><br />
</pre><br />
<br />
<br />
=== Ruth Smith ===<br />
* Create a new folder UniServer\udrive\www\'''ruth_smith''' <br />
* Copy file UniServer\udrive\www\'''.htaccess''' to folder '''ruth_smith'''<br />
* Edit '''.htaccess''' delete all lines above the authentication block.<br />
* Edit the four lines as shown:<br />
<pre><br />
AuthName "Uniform Server - Server Access"<br />
AuthType Basic<br />
AuthUserFile /htpasswd/www/.htpasswd<br />
Require user "Ruth Smith"<br />
</pre><br />
Create a new text file '''index.html''' in folder '''dave_smith''' add the following text:<br />
<pre><br />
<html><head><title>Ruth Smith</title></head><br />
<body><h1>Ruth Smith</h1><br />
<p><a href="http://localhost/../">Home</a></p><br />
<p><a href="http://localhost/../john/">John</a></p><br />
<p><a href="http://localhost/../dave_smith/">Dave Smith</a></p><br />
<p><a href="http://localhost/../dawn/">Dawn</a></p><br />
<p><a href="http://localhost/../ruth_smith/">Ruth Smith</a></p><br />
</body></html><br />
</pre><br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Root folder www ==<br />
On the previous page we created a private server this restriction needs to be removed edit file UniServer\udrive\www\'''.htaccess''' comment the four authentication lines as shown.<br />
<pre><br />
#AuthName "Uniform Server - Server Access"<br />
#AuthType Basic<br />
#AuthUserFile /htpasswd/www/.htpasswd<br />
#Require user John "Dave Smith"<br />
</pre><br />
Create a new text file '''index.html''' in folder UniServer\udrive\'''www''' add the following text:<br />
<pre><br />
<html><head><title>Server</title></head><br />
<body><br />
<p><a href="http://localhost/john/"">John</a></p><br />
<p><a href="http://localhost/dave_smith/">Dave Smith</a></p><br />
<p><a href="http://localhost/dawn/">Dawn</a></p><br />
<p><a href="http://localhost/ruth_smith/">Ruth Smith</a></p><br />
</body></html><br />
</pre><br />
Displays a page with links saves some typing during testing.<br />
<br />
=== Note: Moved Servers ===<br />
If you moved the servers see [[4.0-Mona: Multi-Servers | Multi-Servers]] remember to add the correct port numbers.<br />
<br />
* Suppose the server was moved to ports Apache 81 Apache SSL 444 the '''index.html''' file will look like this:<br />
<pre><br />
<html><head><title>Server</title></head><br />
<body><br />
<p><a href="http://localhost:81/john/"">John</a></p><br />
<p><a href="http://localhost:81/dave_smith/">Dave Smith</a></p><br />
<p><a href="http://localhost:81/dawn/">Dawn</a></p><br />
<p><a href="http://localhost:81/ruth_smith/">Ruth Smith</a></p><br />
</body></html><br />
</pre><br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Summary ==<br />
The above folder structure is adequate for exploring authentication directives mentioned on the introduction page.<br />
<br />
On the [[Authentication: Directories | next page]] we explore the above structure and directory access. <br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
----<br />
<br />
{|<br />
| [[Image:uc_small_logo.gif]] || [[User:WikiSysop|Ric]]<br />
|}<br />
<br />
[[Category: Uniform Server 4.0-Mona]]<br />
[[Category: UniCenter]]</div>
Ric