<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2>Emmanuel,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2>Try something like this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008></SPAN><SPAN
class=440101719-19022008><FONT face=Arial color=#0000ff size=2><Directory
/var/www/sec><BR> Options
FollowSymLinks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2> AllowOverride None</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2> AuthType Basic</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2> AuthName "NCC Restricted
Area"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2> AuthBasicProvider
file</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2> AuthUserFile
/var/www/sec/.htpasswd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=440101719-19022008><FONT face=Arial
color=#0000ff size=2> Require
valid-user<BR></Directory></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=440101719-19022008><FONT face=Arial color=#0000ff size=2>I put
this in the httpd.conf, but it could be in another files, just make sure you
"Include" it. You also need to enable the Authentication Modules in the
httpd.conf file. Also it is NOT a smart idea to put your password file
inside the website. You also need to use htpasswd (or something similar)
to create and maintain your password file.</FONT></SPAN></DIV>
<DIV><SPAN class=440101719-19022008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=440101719-19022008><FONT face=Arial color=#0000ff size=2>Have a
look at <A
href="http://httpd.apache.org/docs/2.2/howto/auth.html">http://httpd.apache.org/docs/2.2/howto/auth.html</A> and
<A
href="http://httpd.apache.org/docs/2.2/howto/htaccess.html">http://httpd.apache.org/docs/2.2/howto/htaccess.html</A> for
more details.</FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-nz><FONT face=Verdana size=2>Cheers Ian</FONT></SPAN> <BR><SPAN
lang=en-nz><FONT face=Verdana
size=2>______________________<BR><B></B></FONT><B></B><B><FONT face=Georgia>Ian
Tidy</FONT></B><FONT face="Times New Roman"><BR></FONT><B></B><B><FONT
face=Georgia size=2>GIS Analyst / Developer</FONT></B><BR><FONT face=Georgia
size=2>Works Asset Department</FONT><FONT
face="Times New Roman"><BR></FONT><FONT face=Georgia size=2>Napier City
Council</FONT><FONT face="Times New Roman"><BR></FONT><FONT face=Georgia
size=2><A
href="mailto:iant@napier.govt.nz">mailto:iant@napier.govt.nz</A></FONT><BR><FONT
face=Georgia size=2><A
href="http://www.napier.govt.nz/">http://www.napier.govt.nz</A></FONT><FONT
face="Times New Roman"></FONT> <FONT face=Georgia size=2>| <A
href="http://maps.napier.govt.nz/">http://maps.napier.govt.nz</A></FONT><FONT
face="Times New Roman"></FONT></SPAN><SPAN lang=en-us> </SPAN></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ms4w-users-bounces@lists.maptools.org
[mailto:ms4w-users-bounces@lists.maptools.org] <B>On Behalf Of
</B>E.Stefanakis<BR><B>Sent:</B> Wednesday, 20 February 2008 7:22
a.m.<BR><B>To:</B> ms4w-users@lists.maptools.org<BR><B>Subject:</B> [ms4w-users]
ms4w - Application protection with password<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Dear
friends<BR><BR>I have defined the following (as described in the ms4w
installation notes) </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>in order to
protect an ms4w application with password; but it does not
work...</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>(I tried
it in Windows Vista)<BR><BR>=============<BR>The application resides at
c:/ms4w/apps/ITE/htdocs<BR><BR>The C:\ms4w\apps\ITE\htdocs\ht.acl file contains
the following:<BR><BR> AuthType Basic<BR> AuthUserFile
"c:/ms4w/Apache/bin/passwdkml.txt"<BR> AuthName "Password
Required"<BR><BR> require valid-user<BR> <BR>The
C:\ms4w\httpd.d\httpd_ITE.conf file contains the following:<BR><BR>
Alias /ITE/ "/ms4w/apps/ITE/htdocs/"<BR><BR> <Directory
"/ms4w/apps/ITE/htdocs/"><BR> AllowOverride
AuthConfig<BR> Options Indexes FollowSymLinks
Multiviews<BR> </Directory><BR><BR>I have also added the
following to the C:\ms4w\Apache\conf\httpd.conf<BR><BR>
AccessFileName ht.acl .htcaccess<BR><BR>================<BR><BR>Any help
would be greatly appreciated<BR><BR>Thanks in
advance!<BR><BR>Emmanuel.</FONT><BR></DIV></FONT>
<HR>
This e-mail message has been scanned for Viruses and Content and cleared by
<FONT color=#400080><STRONG>MailMarshal </STRONG></FONT>
<HR>
<FONT face=Arial size=1>Scanned by <A
href="http://www.bizoservices.com/services/email_filter.html">Bizo
EmailFilter</A></FONT>
<HR>
This e-mail message has been scanned for Viruses and Content and cleared by
<FONT color=#400080><STRONG>MailMarshal </STRONG></FONT>
<HR>
<FONT
size=1>######################################################################<BR>Attention:
<BR>This e-mail message and accompanying data may contain information that<BR>is
confidential and subject to legal privilege. Any information<BR>provided is
given in good faith. However unless specifically stated to<BR>the contrary,
Napier City Council accepts no liability for the<BR>content of this e-mail or
for the consequences of any action taken on<BR>the basis of the information
provided, unless that information is<BR>subsequently confirmed in writing. If
you are not the intended recipient,<BR>you are notified that any use,
dissemination, distribution or copying<BR>of this message or data is prohibited.
If you received this e-mail<BR>message in error, please notify us immediately
and erase all copies<BR>of this message and attachments. Thank you.
</FONT>
</BODY></HTML>