Skip to content

Instantly share code, notes, and snippets.

@mxcoder
Created January 23, 2014 22: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 mxcoder/8588337 to your computer and use it in GitHub Desktop.
Save mxcoder/8588337 to your computer and use it in GitHub Desktop.
Nginx + PHP configuration template for CodeIgniter projects
server {
listen 80;
server_name {domain} {domain}.localhost;
root /var/www/{domain};
include /etc/nginx/conf.d/common.conf;
include /etc/nginx/conf.d/php.conf;
#include /var/www/{domain}/app.conf;
location / {
try_files $uri $uri/ /index.php;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment