Skip to content

Instantly share code, notes, and snippets.

@zivee
Last active November 11, 2015 09:13
Show Gist options
  • Save zivee/c06326d47dde89328665 to your computer and use it in GitHub Desktop.
Save zivee/c06326d47dde89328665 to your computer and use it in GitHub Desktop.
yaf框架nginx配置
server {
listen 80;
server_name sso.local;
root /path/yaf/public;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment