Has anyone encountered this? I know Django, mod_python, python,
apache, and the necessary libraries are there. I can run my site
(roughly) with the development server, so I know it's there and
working. But when I switch to the Apache server, I only see the basic
Apache success page with instructions on how to get started. I know
it's loading mod_python b/c when I restart Apache it tells me
mod_python is already loaded. I moved my code outside the vhosts
folder as I've heard for Django projects, but does it matter? Any
ideas would be greatly appreciated. Thanks, Tony Here is my
httpd.include config file:
LoadModule python_module modules/mod_python.so
<VirtualHost xx.xx.xxx.xx:80>
ServerName foo.com:80
ServerAlias www.foo.com
UseCanonicalName Off
ServerAdmin "[EMAIL PROTECTED]"
DocumentRoot /var/www/source/foo
CustomLog /var/www/vhosts/foo.com/statistics/logs/access_log
plesklog
ErrorLog /var/www/vhosts/foo.com/statistics/logs/error_log
<Location "/foo">
SetHandler mod_python
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE foo.settings
SetEnv PYTHON_EGG_CACHE /var/www/source/pythoneggs
PythonPath "['/var/www/source/foo'] + sys.path"
PythonOption django.root /foo
PythonDebug On
</Location>
<Directory /var/www/source/foo>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler #also tried w/
o .cgihandler
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
<Directory /var/www/source/foo/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
</VirtualHost>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---