
dave.l.harrison at gmail
Jul 6, 2009, 11:11 PM
Post #1 of 1
(127 views)
Permalink
|
|
trac + nginx + spawn-fcgi
|
|
Hi all, I've configured myself a setup where I have spawn-fcgi starting a number of fastcgi trac processes (trac.fcgi), which nginx talks to using a unix socket. All seems to be working fine, but I'm seeing a situation where I do things like add a new ticket, but then have to reload the page in my browser to see the change - if I just click on "View Tickets" and "Active Tickets" the change isn't there. Are there any issues with Trac and FastCGI that I haven't found via Google yet ? Cheers Dave -- for those interested my spawn-fcgi is started as follows: TRAC_ENV="/home/trac/trac.worker" /usr/local/bin/spawn-fcgi -s /tmp/ trac-fastcgi.sock -n -f /home/trac/trac.worker.deploy/cgi-bin/ trac.fcgi -P /var/run/trac-spawn-fcgi/trac.pid -u trac -g trac and my nginx conf is: location /trac { root /home/trac/trac.worker.deploy; set $path_info ""; set $script_name /trac; if ($fastcgi_script_name ~ "^/trac(/.+)$") { set $path_info $1; } fastcgi_pass unix:/tmp/trac-fastcgi.sock; fastcgi_index trac.fcgi; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /home/trac/ trac.worker.deploy/cgi-bin/trac.fcgi; fastcgi_param QUERY_STRING $query_string; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param SERVER_NAME $server_name; fastcgi_param SERVER_PORT $server_port; fastcgi_param HTTP_COOKIE $http_cookie; fastcgi_param SCRIPT_NAME $script_name; fastcgi_param PATH_INFO $path_info; fastcgi_param REMOTE_USER $remote_user; } location /trac/chrome { alias /home/trac/trac.worker.deploy/trac/htdocs/; autoindex on; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users[at]googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|