반응형
nginx 에서 IE (인터넷익스플로러) 로 접근했을때 지정된 파일로 표시할 수 있다.
location / {
if ($http_user_agent ~* MSIE) {
root /etc/nginx/not-support-ie.html;
}
}
- $http_user_agent : 유저에이전트(User Agent) 문자열
- ~* : 정규식 , 대소문자 구분안함
- MSIE : 유저에이전트(User Agent) 문자열에서 인터넷 익스플로러 비교
위와 같이 수정한 후, nginx 재시작 or reload
반응형
'OS & Infra > Service Infra' 카테고리의 다른 글
[ERROR] [Nginx] 413 Request Entity Too Large (0) | 2022.07.04 |
---|---|
[NginX] Dynamic Virtual Host (0) | 2021.10.19 |
SSL 등록 후 접속이 안될때 (UBUNTU) (0) | 2020.10.27 |
NginX 작동실패 (0) | 2020.10.27 |
[ERROR] net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) (0) | 2019.01.18 |
댓글