Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2004, 07:23 PM
Registered User
 
Join Date: Sep 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default .htaccess question

im on chapter 11 page 318. I was able to set my password but I have a question about AuthUserFile path.

My document path is C:\Program Files\Apache Group\Apache2\test

should I use this as my AuthUserFile path? and which directory should I save .htaccess file?

any help would be appreciated.

 
Old October 5th, 2004, 10:04 PM
Authorized User
 
Join Date: Sep 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe that you should save .htaccess to the folder you want to protect.

.htpasswd should be saved to another location that is outside of the root directory that you want to protect.

 
Old October 5th, 2004, 10:05 PM
Authorized User
 
Join Date: Sep 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And, yes, if you want to password protect the test folder yoru path should be pointing to the test folder.

 
Old October 5th, 2004, 10:36 PM
Registered User
 
Join Date: Sep 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you for your help.

I set my AuthUserFile to C:/Program Files/Apache Group/Apache2/test

and saved .htaccess file outside test directory and

test my program with http://localhost/test

and I still don't get a window asking for my username and password as it shown on page 320.

what could have gone wrong?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 12 htaccess etc newbreed65 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 November 3rd, 2008 05:52 PM
.htaccess mkgupta.mca MySQL 0 August 14th, 2006 03:03 AM
.htaccess problems vertmonkee Beginning PHP 0 March 8th, 2006 07:33 AM
.htaccess file ruhin Beginning PHP 3 June 23rd, 2004 09:31 PM
.htaccess percy PHP How-To 1 July 2nd, 2003 02:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.