SóProvas


ID
2506084
Banca
CESPE / CEBRASPE
Órgão
TRE-BA
Ano
2017
Provas
Disciplina
Sistemas Operacionais
Assuntos

Foi solicitado a um técnico que configurasse o servidor Apache HTTP 2.4 para permitir acesso às portas 80 e 8443 para todas as interfaces IP existentes na máquina, quais sejam: 10.10.1.1, 10.10.1.2 e 10.10.1.3.

O técnico informou que isso não seria possível, pois, no Apache, cada interface somente pode responder por uma porta, e uma porta é exclusiva, ou seja, somente pode ser usada por uma única interface.


Nessa situação hipotética, a informação do técnico está

Alternativas
Comentários
  • The Listen directive tells the server to accept incoming requests only on the specified port(s) or address-and-port combinations. If only a port number is specified in the Listen directive, the server listens to the given port on all interfaces. If an IP address is given as well as a port, the server will listen on the given port and interface. Multiple Listen directives may be used to specify a number of addresses and ports to listen on. The server will respond to requests from any of the listed addresses and ports.

     

    For example, to make the server accept connections on both port 80 and port 8000, on all interfaces, use:

    Listen 80

    Listen 8000

     

    https://httpd.apache.org/docs/2.4/bind.html

     

    Gabarito: d)