Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-27-2006, 11:47 PM   #1
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
Question How do I password protect ~/public_html on the web?

I'm running Ubuntu Dapper Drake, I have apache2 installed and a directory in ~/public_html with a simple website.

All I need is that when the directory is accessed through the web ( the user will need to enter a username and a password or just a password.

Can I do that using apache or do I need some script?
Old 03-28-2006, 12:15 AM   #2
Registered: Feb 2006
Posts: 34

Rep: Reputation: 1
go to apache (org) web site (i'm restricted at the moment), the http server link.

Under documents for version 2 it explains it all under the how-to tutorials.

Old 03-29-2006, 02:11 PM   #3
Registered: Aug 2004
Location: Windsor Ontario
Distribution: Ubuntu, Debian, Redhat
Posts: 44

Rep: Reputation: 15
.htaccess is what you are looking for:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect souvik Programming 3 11-06-2015 02:35 PM
Password protect a website J_K9 Programming 5 07-07-2005 09:12 AM
how to password protect certain directories? sirpelidor Linux - Security 3 10-06-2004 01:16 PM
How to password protect a web directory abdulber Linux - Software 1 01-28-2004 12:34 AM
Password protect a directory Stephanie Linux - General 6 03-26-2002 03:58 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration