Created
March 13, 2017 16:30
-
-
Save tjlytle/c404d89c7c1a1e50776b6705c72179c7 to your computer and use it in GitHub Desktop.
Routing /api in nginx
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
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