시놀로지 Web Station Nginx 설정 변경

Mywikier (토론 | 기여)님의 2018년 7월 18일 (수) 11:46 판

1 개요

시놀로지 Web Station Nginx 설정 변경
  • 시놀로지 Web Station의 기본 Nginx 설정 파일 : /etc/nginx/app.d/server.webstation-vhost.conf
  • 이 파일은 변경 후, 서비스 또는 시스템 재시작 시 원상 복구됨.
  • 그러나, 사용자 설정을 추가하도록 하기 위해 include에서 가리키는 파일을 변경하여 Nginx 설정을 수정 가능.
  • 먼저 SSH 콘솔에 접속.
  • 먼저, include에서 가리키는 파일명을 확인.
synology@zetawiki:~$ cat /etc/nginx/app.d/server.webstation-vhost.conf
   (생략)
    location ^~ /_webstation_/ {
        alias    /var/packages/WebStation/target/error_page/;
    }
    include /usr/local/etc/nginx/conf.d/********-****-****-****-************/user.conf*;
}
  • 도메인별로 여러 개의 가상호스트를 생성하였을 경우, 수정할 server_name을 확인.
  • 와일드카드(*)가 붙어 있는 곳은 user.conf.custom 또는 user.conf.myfile 이렇게 생성할 수 있다는 뜻.
  • 여기서 Nginx config를 수정 가능.
  • 시놀로지는 nano가 지원되지 않아 불편.
synology@zetawiki:~$ sudo vi /usr/local/etc/nginx/conf.d/********-****-****-****-************/user.conf.mycustomfile

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}