# 아래 설정은 https 적용 이후 http -> https 이동에 사용됨. server { listen 80; server_name wiki.changwoo.pe.kr; return 301 https://$server_name$request_uri; } server { server_name blog.changwoo.pe.kr; root /media/storage/www-data/changwoo.pe.kr/wordpress; index index.php; # wp-login.php, wp-admin 접근을 IP로 제한 (단, wp-ajax.php는 AJAX를 활용해야 하므로 허용) location ~ ^/(wp-admin(?!/admin-ajax\.php)|wp-login.php) { allow 192.168.0.0/24; deny all; include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } include /media/storage/www-data/conf.d/wordpress-restrictions.conf; include /media/storage/www-data/conf.d/wordpress.conf; }