Herramientas de usuario

Herramientas del sitio


informatica:certificaciones:lpic:lpic-2:208_web_services

¡Esta es una revisión vieja del documento!


Topic 208: Web Services

Perteneciente a LPIC-2

Módulos:

  • 208.1 Implementing a web server (4)
  • 208.2 Apache configuration for HTTPS (3)
  • 208.3 Implementing a proxy server (2)
  • 208.4 Implementing Nginx as a web server and a reverse proxy (2)

Tests

There is a restricted area in an Apache site, which requires users to authenticate against the file /srv/www/security/site-passwd. Which command is used to CHANGE the password of existing users, without losing data, when Basic authentication is being used.

  • htpasswd -c /srv/www/security/site-passwd user
  • htpasswd /srv/www/security/site-passwd user (Solución)
  • htpasswd -n /srv/www/security/site-passwd user
  • htpasswd -D /srv/www/security/site-passwd user
  • None of the above.

Con la primera opción estaríamos creando el fichero de nuevo, cargándonos el existente.

When Apache is configured to use name-based virtual hosts:

  • it's also necessary to configure a different IP address for each virtual host.
  • The Listen directive is ignored by the server.
  • it starts multiple daemons (one for each virtual host).
  • it's also necessary to create a VirtualHost block for the main host. (Solución)
  • only the directives ServerName and DocumentRoot may be used inside a block
informatica/certificaciones/lpic/lpic-2/208_web_services.1618484968.txt.gz · Última modificación: por tempwin