Operating System - HP-UX
1834879 Members
2049 Online
110071 Solutions
New Discussion

Apache authentication for 1 user 1 webpage

 
SOLVED
Go to solution
someone_4
Honored Contributor

Apache authentication for 1 user 1 webpage

Hi everyone

I am having an issue where I need to set up somekind of password / username authentication for one sub-webpage and leaving every other webpage on this site open to everyone.

Is there a quick and dirty way to do this with apache? Or do I have to go into using mysql or ldap?

Thanks
Richard
2 REPLIES 2
Mark Greene_1
Honored Contributor
Solution

Re: Apache authentication for 1 user 1 webpage

put the content for the sub-webpage in its own directory, and then add a .htaccess file in that directory. The README file in the apache confir dir should adderss the correct syntax for this.

mark
the future will be a lot like now, only later
Geoff Wild
Honored Contributor

Re: Apache authentication for 1 user 1 webpage

Yes - put it in it's own dir, then use a .htaccess file...

http://httpd.apache.org/docs-2.0/howto/auth.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.