Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
Last modified 8 years ago Last modified on 07/28/10 17:25:50

Using phTagr with nginx web server

It is possible to use phTagr with nginx webserver. The only problem are redirections which have to be rewritten to work with nginx.

Here goes working example of rewrites for phTagr:

if (-f $request_filename) {
    break;
}
if (!-f $request_filename) {
    rewrite ^/(.+)$ /index.php?url=$1 last;
    break;
}

If you're using more recent version of nginx you can simplify above rules to this one:

try_files $uri /index.php?url=$uri;

Just put above somewhere inside your server{} block in your nginx config.