Posted by:
stevenmartin99
(---.b-ras2.blp.dublin.eircom.net)
first to fix the localhost issue... open
c:/windows/system32/drivers/etc/hosts
it should look like this...
[
pampserver.com]
and you can download it here
[
pampserver.com]
the key line is the
127.0.0.1 localhost
no other line shud be here.
NOTE - if you have trouble saving the file.. move it to the desktop , edit it and then move it back
----------------------------------------------------------------------------------------
the files for apache are .htaccess and then the .pwd file .
THERE IS NO NAME to the htaccess file. it is just ".htaccess"
change passwordfilename to a name of the file you want. you shud not store the pwd file in the www folder. it needs to go behind the www folder like i have below
.htaccess
---------------------------------------------------------------
AuthUserFile c:\wamp2\passwordfilename.pwd
AuthType Basic
AuthName "Restricted Area"
Require valid-user
---------------------------------------------------------------
passwordfilename.pwd
---------------------------------------------------------------
test:95x74hLDQKXI2
________________________________________________________________
Making the .htaccess file
---------------------------------------------------------------
to make the .htaccess file in windows is a bit unusual. windows doesnt allow a file with no name,
so make a file on the desktop called a.htaccess
open cmd ( start>run>type in CMD (press enter))
in the black box type in
cd desktop (press enter)
then type in
rename a.htaccess .htaccess (press enter)
and now you will have ur file..
Steven Martin
stevenmartin99@gmail.comstevenmartin99@hotmail.comPampServer.com - [
pampserver.com]
Edited 1 time(s). Last edit at 06/09/2009 10:01PM by stevenmartin99.