Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.65 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. server {                                                                                                                                                                                      
  2.     listen 80;
  3.     server_name server.mydomain.net
  4.     root /var/www/app/web;
  5.     index index.php;
  6.  
  7.     location ~ \.php$ {
  8.         fastcgi_pass 127.0.0.1:9000;
  9.         fastcgi_index index.php;
  10.         include fastcgi_params;
  11.     }
  12.  
  13.     location / {
  14.         if (-f $request_filename) {
  15.             expires max;
  16.             break;
  17.         }
  18.  
  19.         if ($request_filename !~ "\.(js|htc|ico|gif|jpg|png|css)$") {
  20.             rewrite ^(.*) /index.php last;
  21.         }
  22.     }
  23. }