Skip to content

Instantly share code, notes, and snippets.

@6r1d
Created December 18, 2020 12:40
Show Gist options
  • Save 6r1d/b8639e72e6623bdde01d54df1c8cdcb2 to your computer and use it in GitHub Desktop.
Save 6r1d/b8639e72e6623bdde01d54df1c8cdcb2 to your computer and use it in GitHub Desktop.
Lighttpd config file for Emscripten
# Lighttpd configuration I am using with Emscripten.
#
# Probably there is a better solution
# and I am doing everything wrong.
#
# Start with:
# lighttpd -D -f lighttpd.conf
server.modules += ( "mod_setenv" )
server.document-root = "/home/USER/DIRECTORY"
server.port = 9090
mimetype.assign = (
".html" => "text/html",
".css" => "text/css",
".js" => "application/javascript",
".wasm" => "application/wasm"
)
index-file.names = ( "index.html" )
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment