Created
July 3, 2012 08:41
-
-
Save anonymous/3038535 to your computer and use it in GitHub Desktop.
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; | |
root /srv/www/example.com; | |
server_name example.com; | |
location / { | |
try_files $uri /app.php$is_args$args; | |
} | |
location ~ ^/app(_dev)?.php$ { | |
internal; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
include fastcgi_params; | |
} | |
location ~ \.php { | |
try_files $uri =404; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment