-
-
Save 6r1d/b8639e72e6623bdde01d54df1c8cdcb2 to your computer and use it in GitHub Desktop.
Lighttpd config file for Emscripten
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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