Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


LinkBack Search this Thread
Old 07-04-2010, 09:19 AM   #1
Registered: Dec 2009
Posts: 105

Rep: Reputation: 15
http auth question


I have a sysinformation program installed in /home/user/sys. the folder exist and i have the following in my httpd.conf however it wont ask me for a password when i go to http://mydomain/sys, why is this ??
Im running apache2 by the way.

<Directory "/home/user/sys/">
AuthUserFile /etc/apache2/.htpasswd
AuthName "Restricted Area"
AuthType Basic
require valid-user

also, i have a stats program running on my server, you access it trough http://mydomain.comort same thing here, how can i make is so it ask for login and password when going there ? is it the same way as above? just wonderin since this is no folder im accessing.
Old 07-04-2010, 10:18 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,772

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294

I guess you've restarted apache after adding the code in httpd.conf. You can put the code into a .htaccess file, so there is no need to restart apache.
Also make sure that httpd.conf is included in apache2.conf and not commented out.
Last but not least, is /home/user the DocumentRoot of your apache server, or you have to access it using http://mydomain/~user/sys


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
http auth question razzera Debian 3 06-04-2010 04:37 PM
Apache http auth. razzera Linux - Security 6 01-27-2010 06:32 AM
Swaret through http proxy+auth securedigital Slackware 8 09-30-2008 10:30 AM
another question on sendmail auth. sorry siweb Linux - Software 0 06-26-2004 08:39 AM

All times are GMT -5. The time now is 10:01 AM.

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration