Show all posts by user
Discussions in German
Page 1 of 1 Pages: 1
Results 1 - 5 of 5
Hi Folks,
I try to do a special caching solution, my php backend generates the cached file and for the next request nginx should check if the cached file exists.
so i need a solution to either replace non-linux-filesystem-characters in the uri with "-" or to hash the uri.
Is there a builtin solution or do I have to write my own extension for this?
greetings,
Haimi
by
Haimi
-
How to...
Hi fotopano,
the solution is rather simple. instead of rewriting the request to the given script filenam you have to configute proxy_pass to redirect every request zu your Zend Framework main .php:
so, instead of
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
you write:
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
Greetings,
Haimi
by
Haimi
-
How to...
Hi Silvio,
versuch mal die Zahlen auch als solche zu suchen im rewrite:
location /silvio {
rewrite ^artikel-(\d+).html artikel.html?id=$1;
}
viele Grüße,
Haimi
by
Haimi
-
German Forum
Hi ohmyrob,
Versuch mal dan Ausdruck den du matchen willst in "" zu setzen, das nimmt auf jeden Fall schon Fehlerquellen weg:
if ($host ~* "^(.*)\.example\.com$" ){
set $subdomain $1;
rewrite ^(.*) http://example.com/?site=$subdomain&$1 last;
}
viele Grüße,
Haimi
by
Haimi
-
German Forum
Hallo Leute,
Ich möchte gerne für eine spezielle Caching-Lösung aus der URI einen String machen, der als Dateiname gültig ist (also Sonderzeichen zu "-" machen)
Gibt es mit nginx-internen MItteln eine Lösung dafür oder muss ich ein addon schreiben?
Falls das von Interesse ist:
Ich benutze aktuell ein Debian squeeze mit nginx 0.7.67
viele Grüße,
Haimi
by
Haimi
-
German Forum