[Wylug-help] configuring LAMP
Christopher McLean
C.J.McLean at leeds.ac.uk
Mon Nov 4 11:59:27 UTC 2013
What are you logs saying?
-----Original Message-----
From: wylug-help-bounces at wylug.org.uk [mailto:wylug-help-bounces at wylug.org.uk] On Behalf Of nigel
Sent: 04 November 2013 11:51
To: Wylug-help
Subject: Re: [Wylug-help] configuring LAMP
Thanks James
ls -ld /home/nigel gives
drwxrw-rw- 40 nigel nigel 4096 Nov 4 10:59 /home/nigel and ls -ld /home/nigel/Documents gives
drwxrw-rw- 28 nigel nigel 4096 Oct 28 08:22 /home/nigel/Documents and ls -ld /home/nigel/Documents/local gives
drwxrw-rw- 12 nigel nigel 4096 Jun 24 21:03 /home/nigel/Documents/local
I have changed a file called mylocal.conf in /etc/apache2/sites-available to read DocumentRoot /home/nigel/Documents/local and Directory /home/nigel/Documents/local/
I have used sudo a2dissite default && sudo a2ensite mylocal (I read this at http://www.ajopaul.com/2010/05/01/ubuntu-apache2-change-default-documentroot-varwww/).
Still getting 403.
Thanks
Nigel
On Fri, 2013-11-01 at 11:11 +0000, James Holden wrote:
> 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
>
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help
_______________________________________________
Wylug-help mailing list
Wylug-help at wylug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/wylug-help
More information about the Wylug-help
mailing list