Created
February 9, 2016 14:58
-
-
Save daemin-hwang/0beb681672179622605d to your computer and use it in GitHub Desktop.
NGINX image 경로 설정
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 ~ ^/image/.*(png|jpg|jpeg|gif|ico|swf)$ { | |
| root /home/ubuntu/project/bolt25/upload; | |
| break; | |
| } | |
| # /image/a.png 로 요청이 들어온 경우 root로 지정된 경로의 파일을 찾음 | |
| # ex) /home/ubuntu/project/bolt25/upload/image.png | |
| 참조 URL : https://gist.github.com/casivaagustin/9261586 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment