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

Notices


Reply
  Search this Thread
Old 03-27-2006, 11:47 PM   #1
brynjarh
Member
 
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 (http://xxx.xxx.xxx.xxx/folder/) 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
stefan1959
Member
 
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.

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

Rep: Reputation: 15
.htaccess is what you are looking for:
http://httpd.apache.org/docs/2.0/howto/htaccess.html
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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