Created
April 16, 2013 09:06
-
-
Save chadrien/5394508 to your computer and use it in GitHub Desktop.
Symfony 2 Nginx configuration
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 { | |
server_name domain.dev; | |
listen 80; | |
root /path/to/web; | |
index app_dev.php; | |
try_files $uri $uri/ /app_dev.php?$query_string; | |
location ~ \.php$ { | |
include fastcgi.conf; | |
fastcgi_pass unix:/path/to/php-fpm.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment