Advertisement
Guest User

Untitled

a guest
Jun 5th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name zsa.dev;
  4.     root C:\Server\www\ZendSkeletonApplication\public;
  5.     index /index.php;
  6.  
  7.     location / {
  8.         if (!-f $request_filename) {
  9.             rewrite ^(.*)$ /index.php?q=$1 last;
  10.             break;
  11.         }
  12.     }
  13.  
  14.     location ~* ^.+.(css|js|jpeg|jpg|gif|png|ico) {
  15.         expires 30d;
  16.     }
  17.  
  18.     location ~ .(php|phtml)$ {
  19.         fastcgi_pass 127.0.0.1:9000;
  20.         fastcgi_index /index.php;
  21.         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  22.  
  23.         include /etc/nginx/fastcgi_params;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement