Skip to content

Instantly share code, notes, and snippets.

@tylerwillingham
Created April 30, 2012 22:08
Show Gist options
  • Save tylerwillingham/2563081 to your computer and use it in GitHub Desktop.
Save tylerwillingham/2563081 to your computer and use it in GitHub Desktop.
nginx vhost config
server {
listen 80;
server_name staging.site.com;
error_log url_to_nginx-error.log;
access_log url_to_nginx-access.log;
root /srv/http/nginx/site.com/staging/root;
location / {
index index.php;
try_files $uri $uri/ @ee;
}
location @ee {
rewrite ^(.*) /index.php?$1 last;
}
location ~ \.php$ {
include fastcgi.conf;
blah blah blah - this all works
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment