Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
403 Forbidden Error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Biekei  
View profile  
 More options Jan 1 2011, 3:14 pm
From: Biekei <dumb...@gmail.com>
Date: Sat, 1 Jan 2011 12:14:37 -0800 (PST)
Local: Sat, Jan 1 2011 3:14 pm
Subject: 403 Forbidden Error
hello,

I tried using the configuration of mod_wsgi for django from the
documentation but I always get a 403 Forbidden error. I use django,
mod_wsgi and apache provided by my distribution (ubuntu). Any advice


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dumb906  
View profile  
 More options Jan 1 2011, 3:28 pm
From: dumb906 <dumb...@gmail.com>
Date: Sat, 1 Jan 2011 12:28:41 -0800 (PST)
Local: Sat, Jan 1 2011 3:28 pm
Subject: 403 Forbidden Error
hi there

used the default settings from the configuration for django from the
documentation page. I'm using django 1.2.3, apache 2.2, mod_wsgi
3.2-2. All files I used for django is stored in /home/biekei/.projects/
py/kt and the folder created by django-admin is /home/biekei/.projects/
py/kt/kt

This is my config file from /etc/apache2/sites-available/default ( the
same error when i used httpd.conf)

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        WSGIScriptAlias /kt /home/biekei/.projects/py/kt/kt/apache/
django.wsgi

        <Directory /home/biekei/.projects/py/kt/kt/>
                Options Indexes MultiViews FollowSymLinks
                Order allow,deny
                allow from all
        </Directory>
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

here also is /home/biekei/.projects/py/kt/kt/apache/django.wsgi
import os
import sys
sys.path.append('/home/biekei/.projects/py/kt')
sys.path.append('/home/biekei/.projects/py/kt/kt')

os.environ['DJANGO_SETTINGS_MODULE'] = 'kt.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Thanks for any advice


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Jan 1 2011, 4:18 pm
From: Graham Dumpleton <graham.dumple...@gmail.com>
Date: Sun, 2 Jan 2011 08:18:25 +1100
Local: Sat, Jan 1 2011 4:18 pm
Subject: Re: [modwsgi] 403 Forbidden Error
Presuming you are same person as OP, then 403 likely because of
restrictive permissions on your home directory preventing user that
Apache runs as from seeing inside of your home directory for your
account.

Have a watch of video presentation and look at slides that go with it at:

  http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_...

The quick fix is to change permissions on your home directory, and
possibly stuff under .projects as well. Alternatively move the web
site stiff outside of your home directory, or run your application in
mod_wsgi daemon mode.

The talk goes through the options.

Graham

On 2 January 2011 07:28, dumb906 <dumb...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »