CodeIgniter Framework로 만든 홈페이지를 운영하려 할때 시놀로지의 WebStation폴더만 설정해주면 제대로 동작하지 않는다. 이때 다음의 절차를 수행하여 정상 동작하도록 설정해준다.
DSM에서 WebStation 설정

WebStation에서 설정한 해당 서버를 찾아서 제일 아래 include 경로 확인
sudo vi /etc/nginx/app.d/server.webstation-vhost.conf
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name moonwoou.com;
ssl_certificate /usr/local/etc/certificate/WebStation/vhost_*******************/fullchain.pem;
ssl_certificate_key /usr/local/etc/certificate/WebStation/vhost_*******************/privkey.pem;
include /usr/syno/etc/security-profile/tls-profile/config/vhost_*******************.conf*;
add_header Strict-Transport-Security max-age=15768000;
ssl_prefer_server_ciphers on;
location ^~ /.well-known/acme-challenge {
root /var/lib/letsencrypt;
default_type text/plain;
}
if ($server_port = "80") {
return 301 https://$server_name$request_uri;
}
root "/volume1/web/moonwoou.com";
index index.html index.htm index.cgi index.php index.php5 ;
error_page 400 401 402 403 404 405 406 407 408 500 501 502 503 504 505 @error_page;
location @error_page {
root /var/packages/WebStation/target/error_page;
rewrite ^ /$status.html break;
}
location ^~ /_webstation_/ {
alias /var/packages/WebStation/target/error_page/;
}
location ~* \.(php[345]?|phtml)$ {
fastcgi_pass unix:/run/php-fpm/php-*******************.sock;
fastcgi_param HOST "moonwoou.com";
include fastcgi.conf;
}
include /usr/local/etc/nginx/conf.d/[해당경로]/user.conf*;
}
제일 하단 경로로 이동하여 user.conf에 다음 추가
sudo /usr/local/etc/nginx/conf.d/[해당경로]/user.conf
location / {
try_files $uri $uri/ /index.php?$request_uri;
}