1. nginx default file
location /content {
charset utf-8;
alias /root/content/;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
2. 권한 주기
chmod -R 755 ~
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=cloverloop&logNo=140208992571
'아카이브 > NAS' 카테고리의 다른 글
[NAS] MariaDB 설치 및 외부접속 (0) | 2021.07.16 |
---|---|
[NAS] Ubuntu에 SpringBoot RESTAPI 올리기 (0) | 2021.07.16 |
[NAS] 외부 접속 허용 (0) | 2021.07.15 |
[NAS] Spring Boot RESTAPI (0) | 2021.07.15 |