Nginx: Difference between revisions

Krutonium (talk | contribs)
Add robots.txt
It was missing the "virtualHosts.localhost" part, making the config file invalid.
Line 8: Line 8:
services.nginx = {
services.nginx = {
   enable = true;
   enable = true;
   locations."/" = {
   virtualHosts.localhost = {
    return = "200 '<html><body>It works</body></html>'";
    locations."/" = {
    extraConfig = ''
      return = "200 '<html><body>It works</body></html>'";
      default_type text/html;
      extraConfig = ''
    '';
        default_type text/html;
      '';
    };
   };
   };
};
};