RE: [users@httpd] a supposition about .htaccess [was: public_html does not work]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: alfredo [mailto:orazio.nelson@xxxxxxxxxxx]
> Sent: Montag, 16. Mai 2005 21:56
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] a supposition about .htaccess [was: public_html
> does not work]
> 
> 
> My commonhttpd.conf file has this directive uncommented:
> 
> #
> # AccessFileName: The name of the file to look for in each directory
> # for access control information.
> #
> AccessFileName .htaccess
> 
> My qyestion is: Do I have to put a .htaccess file in:
> 
> /home/myuser/public_html
> 
> to avoid this nightmare:
> 
> "Forbidden
>   You don't have permission to access /~myuser/ on this server."

No.

A couple of points might clear up some misunderstandings:

- A .htaccess file is just a way of setting some directives in a specific directory. The directives can be anything that works in a directory context and are not restricted to those which control password access. 

- Having said that, the most common use of a .htaccess file is to  switch on password access, hence the confusion (which also extends to the documentation line quoted above).

- In your case, the error has nothing to do with password access. A failure of a password login leads to an 401 Unauthorized. This is different from the 403 Forbidden you're getting.

- 403 Forbidden arises when the browser requests a certain file but the server is configured not to serve that file. This is usually because there is a "Deny from " directive blocking access. For example, a typical setup is to put:

	<Directory />
	  Deny from all  
	</Directory>

At the top of the config. This denies access to everywhere from everyone. Then you allow access only where you need it:

	<Directory /home/fred/public_html>
	  Allow from all  
	</Directory>

This is a very safe setup, but if you're not aware of it you might get a surprise. I suspect you might have something like this. NB, you can use a wildcard to allow access to a range of directories:

	<Directory /home/*/public_html>
	  Allow from all  
	</Directory>

This might fix it for you...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 






> 
> when I point my browser on:
> http://www.mydomain.com/~myuser/
> 
> ???
> 
> Tnx a lot
> Alfredo
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux