Created
April 30, 2012 22:08
-
-
Save tylerwillingham/2563081 to your computer and use it in GitHub Desktop.
nginx vhost config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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