Wir benutzen für Frageee.de das kostenlose Script “Question2Answer“, leider liefert der Author nur eine .htaccess Datei mit Mod_Rewrite Rules für den Apache Webserver mit.
Ich habe die Rewrite Regeln mal für den Webserver nginx portiert.
In der vollen Ansicht findet sich eine komplette nginx Konfiguration für Question2Answer mit php/fastcgi + rewrites:
server {
listen 80;
server_name frageee.de www.frageee.de;
if ($host != 'frageee.de' ) {
rewrite ^/(.*)$ http://frageee.de/$1 permanent;
}
location / {
root /var/www/frageee.de;
index index.php;
}
root /var/www/frageee.de;
if ($request_uri ~* "\/\/") {
rewrite ^/(.*) $scheme://$host/$1 permanent;
}
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?qa-rewrite=$1 last;
break;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/frageee.de$fastcgi_script_name;
include fastcgi_params;
}
}
Related posts:

February 15th, 2011 on 19:18
You might want to look at `try_files` directive.
Just put this in your location codeblock:
try_files $uri $uri/ /index.php?qa-rewrite=$uri&$args;September 2nd, 2011 on 14:24
Thanks for this – just moving stuff onto an nginx server and thought I’d google for a quick conversion rather than doing it myself – so helpful!
It’s loading in my browser, but our answers site won’t load up in Pingdom – don’t suppose you’re getting anything @ http://answers.alliedequine.com/ ?
September 2nd, 2011 on 14:26
Oh, in response to original comment, we have tried the try files directive, and it doesn’t, quite, seem to work (it loads a page, but it’s not looking right) – but it’s probably our error, not the machine’s!