[erlang-questions] Nitrogen start page

John Hughes john.hughes@REDACTED
Sat Mar 17 10:31:12 CET 2012

I'm using nitrogen on inets to serve a mostly-static web site, with a little dynamic content here and there. In particular, the first page is static--index.html as usual. But when I just browse to the domain name, nitrogen uses index.beam to serve the request--and if there is no index.beam, then the request fails.

I've hacked around this by providing an index.beam that uses wf:redirect to go to index.html, which is then served statically. But this means that the browser sees a brief "Redirecting..." message... and perhaps risks Google thinking that's what the page contains! Is there a way to configure nitrogen so that it uses index.html as the start page directly?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120317/74033b2f/attachment.htm>

More information about the erlang-questions mailing list