On 08/16/06 23:30, Fabien Schwob wrote:
> Nobody have an idea on how to solve this problem ?
> 
> On 8/10/06, Fabien Schwob <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> The development of my Django site is on the way. And in order to try
>> it online, I've decided to install it under Apache + mod_python. But
>> when I'm trying to access it, I get a 403 errors on all pages except
>> the index page.
>>
>> I've installed it at http://www.cocoa.fr and the virtual host
>> configuration is the following one :
>>
>> <VirtualHost *:80>
>>         ServerAdmin [EMAIL PROTECTED]
>>         DocumentRoot /home/cocoa/www
>>         SuexecUserGroup cocoa users
>>         ServerName www.cocoa.fr
>>         ServerAlias cocoa.fr
>>         CustomLog logs/cocoa-access_log combined
>>         ScriptAlias /cgi-bin/ /home/cocoa/cgi-bin/
>>         AddHandler x-httpd-php5 .php
>>
>>         SetHandler mod_python
>>         PythonHandler django.core.handlers.modpython
>>         PythonPath "['/home/cocoa'] + sys.path"
>>         SetEnv DJANGO_SETTINGS_MODULE chibbi.settings
>>         Alias /media "/home/cocoa/chibbi/media"
>>
>>         <Location "/media/">
>>                 SetHandler None
>>         </Location>
>> </VirtualHost>
>>
>> The project is in the /home/cocoa/chibbi folder.
>>
>> Thanks in advance.
>>
> 

Looks like apache is trying to handle the requests itself instead of 
passing them to mod_python.

There may be more infos about why apache is throwing a 403 in its error log.

Maybe try something like:

<VirtualHost *:80>
...
<Location "/">
   SetHandler mod_python
   PythonHandler django.core.handlers.modpython
   PythonPath "['/home/cocoa'] + sys.path"
   SetEnv DJANGO_SETTINGS_MODULE chibbi.settings
</Location>
...
</VirtualHost>

see also http://www.djangoproject.com/documentation/modpython/

If this doesn't work post your urls.py so we can have a look at that.

hope this helps
cheers


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to