infra
Platform

모듈 맵

[Linux] Apache/Nginx 웹 서버 설정

0 / 20 완료

펼치기

리눅스 서버 운영 · 11 / 20

[Linux] Apache/Nginx 웹 서버 설정

Apache httpd와 Nginx를 설치하고 가상 호스트, SSL, 접근 제어를 설정합니다

콘텐츠 렌더링 오류: SyntaxError: await is only valid in async functions and the top level bodies of modules

지식 확인

퀴즈 — 5문제

Q1

워드프레스를 운영 중인 Apache 서버에서 플러그인 팀이 '/wp-content/' 경로에 .htaccess 파일을 올려 캐싱 규칙을 추가했는데 전혀 동작하지 않는다고 합니다. httpd.conf를 확인하니 '<Directory /var/www/html> AllowOverride None </Directory>'로 설정되어 있습니다. 원인은?

Q2

Nginx 설정에 location 블록이 4개 있습니다: 'location = /health', 'location ^~ /static/', 'location ~* \.php$', 'location /'. '/health' 요청이 들어올 때 어느 블록이 처리하나요?

Q3

Apache 서버를 처음 설치 후 apachectl start를 실행했더니 'AH00558: httpd: Could not reliably determine the server's fully qualified domain name' 경고가 나옵니다. 서버는 정상 시작되었습니다. 이 경고의 영향과 조치는?

Q4

Nginx 로드밸런서에서 결제 서비스 트래픽을 upstream에 server pay1 weight=3; server pay2 weight=1; 로 분배 중입니다. 트래픽이 예상대로 7.5:2.5가 아닌 3:1로 분배되는 게 맞는지 팀원이 질문합니다. 올바른 답변은?

Q5

Apache 접근 로그에서 '10.0.0.5 - alice [14/Jun/2026:09:00:00 +0900] "POST /api/login HTTP/1.1" 401 0' 항목이 대량 발견됐습니다. 로그 형식이 '%h %l %u %t "%r" %>s %b'일 때, 두 번째 필드 '-'가 의미하는 것은?

0 / 5 답변

이것도 배워보세요