nginx下的Zend Framework转跳配置

Standard
        location / {
          fastcgi_pass          127.0.0.1:1026;
          fastcgi_index         index.php;
          include               fastcgi.conf;
 
          index index.php;
 
          if (!-e $request_filename) {
            rewrite  ^/(.*)$  /index.php?q=$1  last;
            break;
          }
        }
 
        location ~ "\.(js|ico|gif|jpg|png|css)$" {
           expires 1w;
        }

One thought on “nginx下的Zend Framework转跳配置

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.