Skip to content

Web servers

Running nginx and Apache: testing and reloading the configuration, enabling sites and modules, protecting areas with passwords, reverse proxies and load tests.

Basics: Where the configuration lives on each distribution, server blocks and virtual hosts, reverse proxy and TLS

nginx

  • nginx


    Test, reload and inspect the configuration.

Apache

  • apachectl


    Test and reload Apache, list virtual hosts.

  • a2ensite


    Enable and disable sites.

  • a2enmod


    Enable and disable modules.

Tools

  • htpasswd


    Password protection for areas.

  • ab


    Load tests against your own server.

From other chapters

  • certbot


    HTTPS with Let's Encrypt for nginx and Apache. Covered in the chapter Certificates.

  • curl


    Test responses, headers and redirects. Covered in the chapter Network.

  • goaccess


    Evaluate the access logs. Covered in the chapter Logs.

  • logrotate


    Keep the logs of the web server small. Covered in the chapter Logs.