Last active
August 8, 2016 11:53
-
-
Save lovelock/e8ee85b78e8b9c3f34ee31e3005a5392 to your computer and use it in GitHub Desktop.
Yaf nginx configuration
This file contains hidden or 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 /var/www/yaf.dev/public; | |
index index.php index.html index.htm; | |
server_name yaf.dev www.yaf.dev; | |
if (!-e $request_filename) { | |
rewrite ^/(.*) /index.php/$1 last; | |
} | |
location / { | |
include snippets/fastcgi-php.conf; | |
fastcgi_index index.php; | |
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment