LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-27-2011, 07:34 AM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
How To Protect Web Page Directories With Passwords


Dear all,

To Protect Web Page Directories With Passwords i have done the below configuration but the problem is when i click the linux it is not asking username and password,can any one help me on this,

Created new account for logging into web interface:
htpasswd -c /etc/httpd/conf/.htpasswd travelkarega

Created a file name .htaccess in /opt/apps/deploy/websites/travelkarega/html/

vi .htaccess

AuthUserFile /etc/httpd/conf/.htpasswd
AuthName "Please enter password"
AuthType Basic
<Limit GET POST>
require user travelkarega
</Limit>

:wq!

Added these above entries in the file .htaccess
 
Old 06-27-2011, 07:39 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
I would suggest to take a look at
http://httpd.apache.org/docs/1.3/howto/htaccess.html

Kind regards
 
  


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
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 9 02-28-2015 01:07 AM
Resetting user passwords through php web page sushantchawla2005 Linux - Server 9 07-10-2009 09:22 AM
how to password protect certain directories? sirpelidor Linux - Security 3 10-06-2004 01:16 PM
remote computers cannot spider my web page directories jacksonscottsly Linux - Networking 4 07-02-2004 06:10 PM
protect directories in apache Syncrm Linux - General 9 03-19-2002 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:52 AM.

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
Open Source Consulting | Domain Registration