외부ip에 위치하는 이미지의 주소를 내부 디렉토리와 연결하기 위한 방법이다.
이미지 호스팅을 따로 받을때 매우 유용할 것이다.
이미지 호스트 주소/image.jpg
이 주소를 내부 nginx 디렉토리인
image/image.jpg
로 바꾸는 코드이다.
rewrite ^/image/(.*).(png|jpg|gif) https://image_host_address.com/$1.$2;
외부ip에 위치하는 이미지의 주소를 내부 디렉토리와 연결하기 위한 방법이다.
이미지 호스팅을 따로 받을때 매우 유용할 것이다.
이미지 호스트 주소/image.jpg
이 주소를 내부 nginx 디렉토리인
image/image.jpg
로 바꾸는 코드이다.
rewrite ^/image/(.*).(png|jpg|gif) https://image_host_address.com/$1.$2;