Jump to content

Apache Httpd

From NixOS Wiki

Apache Http Server is a web server developed by the Apache Software Foundation.

Enabling

To enable the Apache HTTP server service on your system, add the following options to your NixOS system configuration. Additionally, you may wish to open the appropriate ports in the firewall to allow HTTP and HTTPS traffic.

❄︎ /etc/nixos/configuration.nix
  services.httpd.enable = true;
  networking.firewall.allowedTCPPorts = [ 80 443 ];

Refer to services.httpd for more module configuration options.

Tips and tricks

Using ACME certificates

Refer to NixOS Manual: Chapter - Package Management.

See also