Skip to content

Instantly share code, notes, and snippets.

@necromant2005
Created November 1, 2012 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necromant2005/3992532 to your computer and use it in GitHub Desktop.
Save necromant2005/3992532 to your computer and use it in GitHub Desktop.
Nginx.conf
server {
server_name myhost.com www.myhost.com;
root /var/www/MyAppName/public;
index index.php;
location / {
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment