LPIC-2 Exam 202 (Linux Engineer) — Question 114
Which statements about the Alias and Redirect directives in Apache HTTPD's configuration file are true? (Choose two.)
Answer options
- A. Alias can only reference files under DocumentRoot
- B. Redirect works with regular expressions
- C. Redirect is handled on the client side
- D. Alias is handled on the server side
- E. Alias is not a valid configuration directive
Correct answer: C, D
Explanation
The correct answers are C and D because Redirect indeed occurs on the client side, which means the client receives a response to redirect to a different URL. Alias, on the other hand, is processed on the server side, allowing the server to map a URL to a specific filesystem path. The other options are incorrect: Alias can reference locations outside of DocumentRoot, Redirect does not utilize regular expressions, and Alias is a valid directive.