Closed dkeza closed 7 years ago
Look closely at the example, config was changed to add paths object inside hosts. Let me know how it goes.
You are right, when I changed my settings in config.json to look like this, it worked.
{
"address" : ":80",
"tls" : {
"auto" : false,
"cache_file" : ""
},
"plugins" : [{
"name" : "logger"
}
],
"hosts" : {
"test1.dev" : {
"paths" : {
"/" : {
"plugins" : [{
"name" : "static",
"root" : "www/test1"
}
]
}
}
},
"test2.dev" : {
"paths" : {
"/" : {
"plugins" : [{
"name" : "static",
"root" : "www/test2"
}
]
}
}
}
}
}
Thank You!
When I have in config.json:
Javascript files aren't sent to browser. Instead, I receive content from index.html
Request:
Response:
Also for css files I receive Content-Type: text/html instead of text/css