(Sorry if this is a repost - it isn't showing up in the groups for me)

I've tried to set up Django to use a sub-directory on my local PC - I'm 
using Apache2.0.

This is the relevant part from httpd.conf:

Alias /django /stuff/django/proj1/proj1

<Directory /stuff/django/proj1/proj1>
        Options +execCGI
        AllowOverride FileInfo
        Order allow,deny
        Allow from all
</Directory>

This is from .htaccess:

  AddHandler fastcgi-script .fcgi 

  RewriteEngine On 
  RewriteCond %{REQUEST_FILENAME} !-f 
  RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] 

And this is mysite.fcgi

#!/usr/bin/python

import os,sys

#sys.path.insert(0, "/stuff/django/proj1/proj1")
sys.path.append('/stuff/django/proj1')
sys.path.append('/stuff/django/proj1/proj1')
#os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proj1.settings")

os.chdir("/stuff/django/proj1/proj1")

os.environ["DJANGO_SETTINGS_MODULE"] = "settings.py"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")

However, accessing http://localhost/django gives:

Not Found

The requested URL /stuff/django/proj1/proj1/mysite.fcgi/ was not found on 
this server.
------------------------------
Apache/2.2.15 (Scientific Linux) Server at localhost Port 80
Can anyone spot what I've got configured wrongly?
TIA, N.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/KUdludig6I4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to