I have my logging set on info. These are the only two errors in the
log when I try and hit the root:

[Thu Mar 22 00:46:49 2012] [error] [client 50.89.148.131]
(13)Permission denied: access to / denied
[Thu Mar 22 00:46:49 2012] [error] [client 50.89.148.131]
(13)Permission denied: access to /favicon.ico denied

I've copied the hello.py to two separate places:

/hello.py
and
/apps/hello.py

When I use this:

WSGIScriptAlias / /hello.py

<Directory />
Order deny,allow
Allow from all
</Directory>

it works.

When I do this:

WSGIScriptAlias / /apps/hello.py

<Directory /apps>
Order deny,allow
Allow from all
</Directory>

I get the 403 Forbidden.

Here are the permissions:

drwxrwxrwx.   3 root root  4096 Mar 21 23:43 apps
-rwxr-xr-x. 1 root root  259 Mar 22 00:45 hello.py

Thanks,

Ben

On Mar 22, 12:14 am, Graham Dumpleton <[email protected]>
wrote:
> Can you supply the error messages from the Apache error log as asked
> so can see what it is you are getting?
>
> Without the error messages I am having to guess what the issue is.
>
> Graham
>
> On 21 March 2012 21:12, bmorrise <[email protected]> wrote:
>
>
>
>
>
>
>
> > That was one of the first things I did. I followed that tutorial to
> > the letter and I'm still getting 403 Forbidden. One thing I did notice
> > is that when I moved my hello.py to the / root I was able to access
> > it, but as soon as I move it to any sub directory I get a 403. I'm
> > making these file changes as the root user, but I am giving
> > permissions to all the directories and files.
>
> > -Ben
>
> > On Mar 21, 11:24 pm, Graham Dumpleton <[email protected]>
> > wrote:
> >> What is the actual error message in the Apache error logs.
>
> >> It is the error message in the Apache error log and not that in the
> >> browser which is usually more informative as to what the problem is.
>
> >> See:
>
> >>http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_...
>
> >> which explains that and what the different error messages mean.
>
> >> Graham
>
> >> On 21 March 2012 20:01, bmorrise <[email protected]> wrote:
>
> >> > I can't seem to get anything but 403 Forbidden to show up when using
> >> > mod_wsgi. I've found several places where this issue has been
> >> > addressed, tried all the solutions, but no luck.
>
> >> > I checked apache to make sure mod_wsgi is installed and loaded and it
> >> > is.
>
> >> > I've created this file:
>
> >> > /apps/hello.wsgi
>
> >> > I gave the directory and the file a whole bunch of different
> >> > permissions combinations, 744, 777, etc. with the same result.
>
> >> > This is what I have in my httpd.conf file currently, although I've
> >> > tried just about every combination I could think of:
>
> >> > <Directory "/apps">
> >> >    Order deny,allow
> >> >    Allow from all
> >> > </Directory>
>
> >> > NameVirtualHost *:80
>
> >> > <VirtualHost *:80>
> >> >    WSGIScriptAlias / /apps/hello.wsgi
> >> > </VirtualHost>
>
> >> > Any help would be appreciated.
>
> >> > Thanks,
>
> >> > Ben
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "modwsgi" group.
> >> > To post to this group, send email to [email protected].
> >> > To unsubscribe from this group, send email to 
> >> > [email protected].
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/modwsgi?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "modwsgi" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to