exam questions

Exam 202-450 All Questions

View all questions & answers for the 202-450 exam

Exam 202-450 topic 1 question 70 discussion

Actual exam question from LPI's 202-450
Question #: 70
Topic #: 1
[All 202-450 Questions]

The following Apache HTTPD configuration has been set up to create a virtual host available at www.example.com and www2.example.com:

Even though Apache HTTPD correctly processed the configuration file, requests to both names are not handled correctly. What should be changed in order to ensure correct operations?

  • A. The configuration must be split into two VirtualHost sections since each virtual host may only have one name.
  • B. The port mentioned in opening VirtualHost tag has to be appended to the ServerName declaration's values.
  • C. Both virtual host names have to be placed as comma separated values in one ServerName declaration.
  • D. Both virtual host names have to be mentioned in the opening VirtualHost tag.
  • E. Only one Server name declaration may exist, but additional names can be declared in ServerAlias options.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
carlkktw
Highly Voted 3 years, 10 months ago
The answer should be 'E'.
upvoted 13 times
...
frantic25
Highly Voted 3 years, 7 months ago
According to apache doc, ServerName can specify just one name. ServerAlias can specify more aliases. http://httpd.apache.org/docs/2.2/mod/core.html#servername
upvoted 5 times
...
blahalt
Most Recent 1 month ago
Selected Answer: E
ONLY E is correct !
upvoted 1 times
...
jchavarria12
5 months, 3 weeks ago
Selected Answer: E
the right one is E
upvoted 1 times
...
Lantos
1 year, 1 month ago
Selected Answer: E
The apache 2.4 doc says that "The ServerName directive may appear anywhere within the definition of a server. However, each appearance overrides the previous appearance (within that server)". This tells me that ServerName cannot be used to define alias addresses.
upvoted 1 times
...
mira_
1 year, 8 months ago
Selected Answer: E
ServerName can specify just one name. ServerAlias can specify more aliases.
upvoted 2 times
...
Armina
2 years, 4 months ago
Selected Answer: E
E is correct!
upvoted 2 times
...
exco
2 years, 10 months ago
Despite the fact that it is possible to use comma in ServerName dierective, that is not the correct anwer. I just passed today the exam with 800 points and have chosen the E as the answer.
upvoted 4 times
...
MBison
3 years, 3 months ago
Also the documentation of Apache 2.4 specifies only one ServerName: https://httpd.apache.org/docs/2.4/en/mod/core.html#servername I think too, the correct answer should be 'E'. You can also split the configuration in 2 Virtual Hosts. But the answer is not correct, because the write "you have to".
upvoted 1 times
...
tcaseit
3 years, 7 months ago
Just tested and C definitely works on Apache 2.4.41 on Ubuntu Server 20.04. Not sure if it is supposed to but it does. Also tried with a single ServerName and a ServerAlias it exhibited the same results though.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago