{...}: { services.httpd = { enable = true; adminAddr = "vantrong2007vn@gmail.com"; user = "static"; group = "public"; virtualHosts = { localhost = { documentRoot = "/home/PUBLIC"; listen = [ { ip = "0.0.0.0"; port = 37284; } ]; extraConfig = '' Options -Indexes +FollowSymLinks AllowOverride None Require all granted Require all denied ''; }; }; }; }