Hello,

I have been playing around with django in the dev environment for a
week or so and i want to move what I have over to my production OS X
server running Apache 1.3.

I have gone through several documents discussing the setup of Apache
1.3 and Fast CGI and I just cannot seem to get this working.

I am following the instructions found here:
http://code.djangoproject.com/wiki/OsxFcgi

I am running OS X Server version 10.4.8 and I have installed Python
2.4.

In terminal when I run python, it tells me it is running 2.4.4. I can
get to the admin and blog applications using the built in dev server.

Per the link above, I installed django-fcgi.py, mod_fastcgi and flup.

I did not edit the /etc/hosts since I am running local dns for my
domain, timmedley.com

Since I am already doing virtual hosting on my OS X Server, I edited
the site specific httpd.conf. 0000_any_80_www.timmedley.com.conf and
which has the following configuration:

## Default Virtual Host Configuration
FastCgiExternalServer /users/homer/mycode/timmedley.fcgi -host
127.0.0.1:8882

<VirtualHost *:80>
        ServerName www.timmedley.com
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot "/Library/WebServer/Documents/websites/timmedley"
        RewriteEngine On
      RewriteRule ^(/m/.*)$ $1 [L]
      RewriteRule ^(/media.*)$ $1 [L]
      RewriteRule ^(/.*\.)(jpg|gif|png|ico)$ $1$2 [L]
      RewriteRule ^(/admin.*)$ /timmedley.fcgi$1 [L]
      RewriteRule ^(/myapp.*)$ /timmedley.fcgi$1 [L]
      RewriteRule ^(/.*)$ /timmedley.fcgi$1 [L]
        DirectoryIndex index.php
        CustomLog "/var/log/httpd/access_log" "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\""
        ErrorLog "/var/log/httpd/error_log"
        ErrorDocument 404 /error.html
        <IfModule mod_ssl.c>
                SSLEngine Off
                SSLLog "/var/log/httpd/ssl_engine_log"
                SSLCertificateFile "/etc/certificates/Default.crt"
                SSLCertificateKeyFile "/etc/certificates/Default.key"
                SSLCipherSuite
"ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+eNULL"
        </IfModule>
        <IfModule mod_dav.c>
                DAVLockDB "/var/run/davlocks/.davlockany_80_default"
                DAVMinTimeout 600
        </IfModule>
        <Directory "/Library/WebServer/Documents/websites/timmedley">
                Options All -Indexes -ExecCGI -Includes +MultiViews
                <IfModule mod_dav.c>
                        DAV Off
                </IfModule>
                AllowOverride None
        </Directory>
        <Directory "/usr/local/awstats/wwwroot/cgi-bin/">
                AuthName "awstats"
                <Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE 
PROPPATCH
MKCOL COPY MOVE LOCK UNLOCK>
                        Require user  tim.medley
                </Limit>
                AuthType Digest
        </Directory>
        <IfModule mod_rewrite.c>
                RewriteEngine On
                RewriteCond %{REQUEST_METHOD} ^TRACE
                RewriteRule .* - [F]
        </IfModule>
        <IfModule mod_alias.c>
        </IfModule>
        LogLevel warn
        ServerAlias timmedley.com
</VirtualHost>


My django project is named timmedley and is located at
users/homer/mycode/  and my website root directory is
/library/webserver/documents/websites/timmedley

I've restarted Apache and rebooted the server, however, when I go to
http://www.timmedley.com
http://www.timmedley.com/blog
http://www.timmedley.com/admin/

I get the same error in safari,

Not Found
The requested URL / was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.

I also get the same error trying to bring up a standard html page,
http://www.timmedley.com/index.html


Can anyone shed some light onto whatever I am missing or have
misconfigured? This is starting to drive me insane.

Tim

tim.medley at moxieent.com


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to