[Wylug-help] configuring LAMP

James Holden wylug at jamesholden.net
Fri Nov 1 11:11:55 UTC 2013


Hi Nigel,

On Thu, Oct 31, 2013 at 07:29:01PM +0000, nigel wrote:
> 
> ls -l /home/nigel gives
> total 56
> blah
> drwxr-xr-x 28 nigel nigel 4096 Oct 28 08:22 Documents
> blah

This doesn't show the permissions of /home/nigel. Could you do ls -ld instead?
That will stop ls from looking inside the directory and display the directory
permissions itself.

> http://localhost/index.html gives 403 forbidden
> 
> [Mon Oct 28 19:38:11.425600 2013] [authz_core:error] [pid 3089] [client
> 127.0.0.1:47658] AH01630: client denied by server
> configuration: /home/nigel/Documents/local/index.htm

However, the above suggests that the server config is disallowing access to the
path. Usually, you'd see something like this in the Apache config:

<Directory />
	Order Deny,Allow
	Deny From All
</Directory>

Followed by:

<Directory /var/www>
	Order Allow,Deny
	Allow From All
</Directory>

...which is so that only /var/www is accessible. If you want to allow access to
files located anywhere else, you'd need to amend or add to the config
appropriately.

Best regards,

James


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20131101/67f9d08e/attachment.pgp>


More information about the Wylug-help mailing list