Created
May 16, 2012 21:07
-
-
Save simonjodet/2713959 to your computer and use it in GitHub Desktop.
Nginx configuration for pretty URLs in Silex
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 website.loc www.website.loc; | |
access_log /var/log/nginx/website.access_log; | |
error_log /var/log/nginx/website.error_log; | |
root /var/www/website.loc/web/; | |
index index.php; | |
location / | |
{ | |
try_files $uri $uri/ /index.php; | |
} | |
location ~* \.php$ | |
{ | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment