Skip to content

Instantly share code, notes, and snippets.

@jeaye
Created January 17, 2021 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeaye/c2aa524bcab9c7183af9314f9a2b2e6c to your computer and use it in GitHub Desktop.
Save jeaye/c2aa524bcab9c7183af9314f9a2b2e6c to your computer and use it in GitHub Desktop.
makeVirtualHost = domain:
{
hostName = domain;
serverAliases = [("www." + domain)];
enableSSL = false;
documentRoot = "/etc/user/http/" + domain;
};
services.httpd.virtualHosts = (map makeVirtualHost domains);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment