Skip to content

Instantly share code, notes, and snippets.

@tjlytle
Created March 13, 2017 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjlytle/c404d89c7c1a1e50776b6705c72179c7 to your computer and use it in GitHub Desktop.
Save tjlytle/c404d89c7c1a1e50776b6705c72179c7 to your computer and use it in GitHub Desktop.
Routing /api in nginx
location /api/ {
alias /;
fastcgi_pass api:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /path/to/public/index.php;
fastcgi_param REQUEST_URI $request_filename;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment