I basically followed the instructions here but adapted the proxy to my own needs.
nginxRun CGI on nginx using thttpd as a proxyI basically followed the instructions here but adapted the proxy to my own needs.
Using ImageCache with nginxI couldn't get the ImageCache module for Drupal to work for the longest time because I didn't realize that the module came with a http://drupal.org/node/110224#comment-772191 # imagecache needs to have php read any files that it's planning to manipulate
location ^~ /sites/default/files/imagecache/ {
index index.php index.html;
# assume a clean URL is requested, and rewrite to index.php
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
break;
}
}
# serve static files directly
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ {
access_log off;
expires 30d;
}
Reference: PHP5 FastCGI config for nginx on Ubuntu and clean URLsI was trying to figure out how to get a wordpress blog up and running on my slicehost slice real fast but I don’t know anything about nginx or FastCGI. Serving PHP5 with Nginx on Ubuntu 7.10 turned out to be a good step-by-step that provided all the info I needed. Thanks Mr. Blogger! For SEO purposes I also needed some clean URLs. nginx does not do I added this to my location block {}. if (-e $request_filename) {
break;
}
|
Tags in TagsUser login |