Thursday, October 7, 2010

nginx zend framework config

nginx server config to use zend framework. 100% works, original content, optimized.
server {
  server_name localhost4;
  root /var/www/localhost4/public;
  index index.php;
  try_files $uri $uri/ @notfile;

  location @notfile {
    rewrite ^(.*) /index.php last;
  }

  location ~ \.php$ {
   fastcgi_pass 127.0.0.1:8888;
   fastcgi_index /index.php;
   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   include /etc/nginx/fastcgi_params;
  }
}

16 comments:

  1. good tip man

    btw, check out my new post on Enhanced by MS Paint :)

    ReplyDelete
  2. programming aint my best; I've never tried php.

    Looks fun just to look at though =D

    I would appreciate your input on my Razer Lycosa review if you haven't commented already =D

    Please check out my best of daft punk post too if you haven't yet please. This is part of a new best of series I'm starting, so any input is appreciated! <3 Thanks in advance!

    ReplyDelete
  3. Nice!:)

    Visit and Follow my blogs!;)

    ReplyDelete