Hallo,
this is what I've done:
- Building a subdomain 'trac.denkdran.org'
- Install trac via control panel under path 'trac'
- Install mod_wsgi via control panel under path 'apache'
- Configure 'httpd.conf' as described by trac documentation
- Add 'apache'-app (mod_wsgi) to 'trac.denkdran.org'
- Restart apache
This is my 'httpd.conf':
ServerRoot "/home/claus/webapps/apache/apache2"
LoadModule alias_module modules/mod_alias.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule wsgi_module modules/mod_wsgi.so
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /home/claus/logs/user/access_apache.log combined
DirectoryIndex index.py
DocumentRoot /home/claus/webapps/apache/htdocs
ErrorLog /home/claus/logs/user/error_apache.log
KeepAlive Off
Listen 16660
MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIDaemonProcess apache processes=5 python-path=/home/claus/webapps/apache/lib/python2.7 threads=1
WSGIProcessGroup apache
WSGIRestrictEmbedded On
WSGILazyInitialization On
Alias /trac/chrome/common /home/claus/webapps/trac/htdocs/common
Alias /trac/chrome/site /home/claus/webapps/trac/htdocs/site
<Directory /home/claus/webapps/trac/htdocs>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /trac /home/claus/webapps/trac/cgi-bin/trac.wsgi
<Directory /home/claus/webapps/trac/cgi-bin>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
<Directory /home/claus/webapps/apache/htdocs>
AddHandler wsgi-script .py
</Directory>
Now, when I call 'http://trac.denkdran.org/trac' I became the message '502 - Bad Gateway'.
What is wrong? Have I forgotten something? Is there anywhere a good documentation to install trac with mod_wsgi on WebFaction?
mutetella
asked
14 Mar '12, 11:20
mutetella
23●2●5●8
accept rate:
0%