Nginx: Difference between revisions
Add robots.txt |
Bmnascimento (talk | contribs) 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 = { | ||
locations."/" = { | |||
return = "200 '<html><body>It works</body></html>'"; | |||
extraConfig = '' | |||
default_type text/html; | |||
''; | |||
}; | |||
}; | }; | ||
}; | }; |