WebFaction
Community site: login faq

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
23258
accept rate: 0%


A 502 error means the front-end nginx server can not hear your application on the designated port. This typically means the application server is not running. We would have to see the log files to know why that is happening. Also seeing the account in real-time would help as we could see how you have the control panel configured. If you want us to look at the current installation directly you may submit a support ticket.

permanent link

answered 14 Mar '12, 17:54

johns
5.4k412
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×56
×27

question asked: 14 Mar '12, 11:20

question was seen: 2,891 times

last updated: 14 Mar '12, 17:54

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM