nerdexam
LPI

117-102 · Question #705

You need to run a second Apache server on the same IP address. Which of the following is true?

The correct answer is C. The second Apache server must listen on another port. See the full explanation below for the reasoning.

Question

You need to run a second Apache server on the same IP address. Which of the following is true?

Options

  • AYou cannot run more than one Apache on one IP address.
  • BYou have to add a new entry in /etc/services.
  • CThe second Apache server must listen on another port.
  • DThe second Apache must be a child process of the first.

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    5% (1)
  • C
    82% (18)
  • D
    5% (1)

Community Discussion

3
Nina C.Nina C.Dec 7, 2025

The answer is C, and here is why it makes sense once you think about how networking actually works. An IP address alone does not tell traffic where to go on a specific machine, it is the port number that does that, so two Apache instances on the same IP just need to each claim a different port, like 80 and 8080.

9
Devraj B.Devraj B.Dec 17, 2025

C is the move here, since a socket is defined by the IP plus port combination, so two processes can share the same IP as long as they bind to different ports, which is exactly what a second Apache instance configured with a different Listen directive does. Here is what I want you to think about though: if you pointed both servers at port 80 and port 8080 respectively, which configuration file directive controls which port each daemon actually binds to, and does changing that directive alone guarantee the OS will let the second process start without error?

4
Fatima Z.Fatima Z.Nov 25, 2025

Think DIFFERENT DOOR, same house. Can two servers truly share one port?

2
Full 117-102 Practice