Знаю, Вы сейчас начнете на меня кидаться что я, дескать, извращенец(таким я и являюсь), но всё же.
Хочу настроить mod_wsgi на windows:
есть пайтон 2.62, mod_wsgi - mod_wsgi-win32-ap22py26-2.6.so
апач 2.2 и винда ХР
Даю конфигурационный файл apache_django_wsgi.conf(взял с документации по джанге):
<VirtualHost *:80>
ServerName climat
DocumentRoot D:/Administrator/workspace/condicioners/src/climat
#WSGIDaemonProcess aliens user=aliens group=www-data threads=2 maximum-requests=1000
Alias /media/ "D:/Administrator/workspace/condicioners/src/climat/media"
<Directory "D:/Administrator/workspace/condicioners/src/climat/media">
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
Alias /admin/media/ "C:/Python26/Lib/site-packages/django/contrib/admin/media/"
<Directory "C:/Python26/Lib/site-packages/django/contrib/admin/media">
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
#WSGIProcessGroup aliens
WSGIScriptAlias / "D:/Administrator/workspace/condicioners/src/climat/django.wsgi"
<Directory "D:/Administrator/workspace/condicioners/src/climat/apache">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
import os, sys
import django.core.handlers.wsgi
sys.path.append(os.path.join(os.path.realpath(os.path.dirname(__file__)), '..'))
os.environ['DJANGO_SETTINGS_MODULE'] = os.path.basename(os.path.dirname(__file__)) + '.settings'
application = django.core.handlers.wsgi.WSGIHandler()
sys.path.append(os.path.join(os.path.realpath(os.path.dirname(__file__))))
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.8 for ServerName
[Tue Oct 06 09:13:16 2009] [notice] Apache/2.2.13 (Win32) mod_wsgi/2.6 Python/2.6.2 configured -- resuming normal operations
[Tue Oct 06 09:13:16 2009] [notice] Server built: Aug 6 2009 15:50:50
[Tue Oct 06 09:13:16 2009] [notice] Parent: Created child process 3820
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.8 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.8 for ServerName
[Tue Oct 06 09:13:16 2009] [notice] Child 3820: Child process is running
[Tue Oct 06 09:13:16 2009] [notice] Child 3820: Acquired the start mutex.
[Tue Oct 06 09:13:16 2009] [notice] Child 3820: Starting 64 worker threads.
[Tue Oct 06 09:13:16 2009] [notice] Child 3820: Starting thread to listen on port 80.
[Tue Oct 06 09:13:25 2009] [error] [client 127.0.0.148] client denied by server configuration: D:/Administrator/workspace/condicioners/src/climat/django.wsgi
[Tue Oct 06 09:13:27 2009] [error] [client 127.0.0.148] client denied by server configuration: D:/Administrator/workspace/condicioners/src/climat/django.wsgi
[Tue Oct 06 09:13:27 2009] [error] [client 127.0.0.148] client denied by server configuration: D:/Administrator/workspace/condicioners/src/climat/django.wsgi
Спасибо большое!