Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Directory protected

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache Tomcat 5.0 caching files  
Author Message
spiazi67

External


Since: Sep 08, 2004
Posts: 1



(Msg. 1) Posted: Wed Sep 08, 2004 8:15 am
Post subject: Directory protected
Archived from groups: alt>apache>configuration (more info?)

I've create a <directory> directive.
I've add :

AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /usr/local/apache/passwd/passwords
Require valid-user

Then when I go to the url of the protected area , it's all right and a popup
windows appear for authentification.
Then if the user is a valid user, appear a page with the list of the file.
But when I
click a file or dir of this page, an error page appear. It seems that apache
don't found the file. Also if I write after authentification the filename in
the url, the same error appear?

Can you help me?

Thank you,

SG

 >> Stay informed about: Directory protected 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Sep 08, 2004 9:54 pm
Post subject: Re: Directory protected [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-08, sp <spiazi67 RemoveThis @netscape.net> wrote:
 > But when I
 > click a file or dir of this page, an error page appear.

And the error is... and what's in the error_log ? Does
the user/group that apache run as have rights to access those files?

Davide
--
Your conscience never stops you from doing anything. It just stops you
from enjoying it.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Directory protected 
Back to top
Login to vote
user2962

External


Since: Sep 09, 2004
Posts: 1



(Msg. 3) Posted: Fri Sep 10, 2004 12:08 am
Post subject: Re: Directory protected [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Perhaps this problem is not related to any possible mistakes in your
..htaccess file !
Yes, first check if apache can access the documents (as Davide Bianchi
suggested earlier).
On my computer I changed ownership (with 'chown') of all the files to
someuser.www-data.
Just make sure that all files you want to be available via the webserver are
owned by the www-data user group.

Hope this helps
M.

"sp" <spiazi67.RemoveThis@netscape.net> wrote in message
news:dAw%c.215898$OR2.10013595@news3.tin.it...
 > I've create a <directory> directive.
 > I've add :
 >
 > AuthType Basic
 > AuthName "By Invitation Only"
 > AuthUserFile /usr/local/apache/passwd/passwords
 > Require valid-user
 >
 > Then when I go to the url of the protected area , it's all right and a
popup
 > windows appear for authentification.
 > Then if the user is a valid user, appear a page with the list of the file.
 > But when I
 > click a file or dir of this page, an error page appear. It seems that
apache
 > don't found the file. Also if I write after authentification the filename
in
 > the url, the same error appear?
 >
 > Can you help me?
 >
 > Thank you,
 >
 > SG
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Directory protected 
Back to top
Login to vote
dinges_danges_

External


Since: Aug 03, 2004
Posts: 88



(Msg. 4) Posted: Fri Sep 10, 2004 1:03 am
Post subject: Re: Directory protected [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Martijn said the following on 09/09/2004 21:08:

 > On my computer I changed ownership (with 'chown') of all the files to
 > someuser.www-data.
 > Just make sure that all files you want to be available via the webserver are
 > owned by the www-data user group.

As long as "others" (user/group/others) have permission to view it, it's
not necessary to be owned by the user or group apache runs at. Look at
the default icons suplied by Apache, they're probably owned by root. As
long as the permission is 644 (or at least 004) everything is ok.

It doesn't hurt if you do as you sugested, it's just not necessary.

--
Regards
Harrie<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Directory protected 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Do Not See Protected Directory in Directory List - I am upgrading my Linux Apache web server from Version 1.3 to Version 2.0. I have a directory (software) with no index.html and a number of subdirectories in it. One of those directories (standard) is password protected. When my web browser displays the....

Using .htaccess to make files public in password protected.. - Right now I have a directory that has .htaccess: DirectoryIndex index.php AuthUserFile /home/mysite/.htpasswd AuthGroupFile /dev/null AuthName "Account" AuthType Basic require user fred This passw...

how to stop the password tries in the .htaccess protected .. - To improve the security and stop the password tries in the .htaccess protected folder, HOW can I disable a .htpasswd user if in a short time, this user's password has been typed in wrong for 10 times?

Problem with access to password protected area - I have a directory selected with a .htaccess file in it. The following is the contents of the file AuthType Basic AuthName "Restricted Directory" AuthUserFile /usr/local/etc-http/.htpasswd Require valid-user I ...

<Directory> - I am having a problem setting up a virtual directory so that when I type 'blah' into a webbrowser it comes up with the site that is hosted on the local machine Could anybody point me in the right direction please. I have read through as much..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]