Click to See Complete Forum and Search --> : password protecting a page


ismkerry
10-31-2003, 11:31 AM
Hi,

This will seem a simple question but I am new to linux. I am running Red Hat 7.2 on my server. I need to password protect a web page. When a viewer comes to the page I need a box to pop up asking for a password. Is there a simple solution?

Thanks for your help,

Kerry Schenker

retsaw
10-31-2003, 11:46 AM
I assume you are using apache as you didn't say.

Info for apache 1.3 here (http://httpd.apache.org/docs/howto/auth.html) or apache 2.0 here (http://httpd.apache.org/docs-2.0/howto/auth.html).

Hope this helps.

mrBen
10-31-2003, 11:50 AM
I normally put the page in a folder, and then use a .htaccess file in the folder to put in protection.

Do a search for .htaccess and you'll probably find good stuff on creating it.