LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2006, 12:11 AM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
mod_authz_owner


i'm trying to get mod_authz_owner working with apache, so when someone tries to access the /var/www/html/pma file they need to put in pma's username and password.

(there is a reason for doing it this way so please don't offer any other solutions)

this is what i have done

[root@dhcppc2 html]# mkdir pma
[root@dhcppc2 html]# chown pmama pma/
[root@dhcppc2 html]# chmod ug+rwx pma
[root@dhcppc2 html]# htpasswd -c /etc/httpd/conf/htpasswd pma
New password:
Re-type new password:
Adding password for user pma

i added the following to the /etc/httpd/conf/httpd.conf file

<Directory /var/www/html/pma>
AuthName "only pma has access"
AuthType basic
AuthUserFile /etc/httpd/conf/htpasswd
require file-owner
</Directory>

then i restart apache

/etc/init.d/httpd restart

i thought this way a new feature of apache 2.2

http://httpd.apache.org/docs/2.2/mod...thz_owner.html

this is the in /var/log/httpd/error_log

[Wed Mar 29 16:07:06 2006] [error] [client 192.168.1.34] (2)No such file or directory: Authorization of user pma to access /pma/index.php failed, reason: could not stat file /var/www/html/pma/index.php
[Wed Mar 29 16:07:06 2006] [error] [client 192.168.1.34] (2)No such file or directory: Authorization of user pma to access /pma/index.html failed, reason: could not stat file /var/www/html/pma/index.html
[Wed Mar 29 16:07:06 2006] [error] [client 192.168.1.34] (2)No such file or directory: Authorization of user pma to access /pma/index.html.var failed, reason: could not stat file /var/www/html/pma/index.html.var

from that i think it's trying to find a file, can someone tell me how to change it so it doesn't require a file in that directory?

Last edited by paul_mat; 03-29-2006 at 12:36 AM.
 
Old 03-29-2006, 10:39 PM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
i've figure out what i wanted and posted my finding on my website if anyone's interested at looking

http://www.yourhowto.org/content/view/50/9/
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:35 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