nginx redirect 썸네일형 리스트형 웹 서버에서 리다이렉션(redirect) 설정하는 방법 Apache와 Nginx 웹 서버에서 리다이렉션(redirect) 설정하는 방법 Apache 웹 서버에서 리다이렉션 설정 rewrite 모듈 활성화 httpd.conf 편집 vim httpd.conf LoadModule rewrite_module modules/mod_rewrite.so mod_rewrite.so 모듈 확인 httpd -M | egrep -i rewrite $ httpd -M | egrep -i rewrite rewrite_module (shared) http에서 https로 리다이렉트 설정 ... RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] #RewriteRule .. 더보기 NGINX 특정 파일이나 디렉토리를 제외한 모든 연결을 제한 NGINX 특정 파일이나 디렉토리를 제외한 모든 연결을 제한 모든 연결 제한(나머지 요청 301 리다이렉트) location / { return 301 https://sangchul.kr; } 특정 파일이나 디렉터리(health_check.html 파일) 접근 허용 location ~ ^/health_check.html { #access_log off; access_log /var/log/nginx/elb-healthchecker-access.log main; } default.conf 파일 $ vim /etc/nginx/conf.d/default.conf # Settings for a HTTP enabled server. server { listen 80; server_name _; root /usr/.. 더보기 이전 1 다음