Created
May 11, 2013 05:43
-
-
Save minodisk/5559020 to your computer and use it in GitHub Desktop.
nginx on Mac
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; | |
| server_name _; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Server $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| location /api { | |
| proxy_pass http://localhost:3000; | |
| } | |
| location / { | |
| root /path/to/root; | |
| index index.html index.htm index.fhtml index.fxhtml index.php; | |
| autoindex on; | |
| } | |
| } |
Author
minodisk
commented
May 11, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment