Can’t let go
- January 3rd, 2010
- Write comment
Finally, it turns out that it’s me who can’t let go.
Archive for the ‘Uncategorized’ Category
I was looking for a simplest way to setup an HTTP server for publishing some static content, then I found jetty.
I can just start the jetty, and simply put my static content into the /javadoc folder, and then it can be viewed through a browser.
But I encounter a problem that the URL is case sensitive. That means if the file is test.pdf, and I cannot find it via TEST.PDF, but I really need it.
After searching in goolge for a long time, I find that most of the articles about jetty aliases are out-dated, they are not suitable for jetty 7.
But finally, I found the answer from jetty 7’s javadoc – ResourceHandler.setAliases(), and it redirected me to ContextHandler.isAliases()
Here is the update I made to make it work:
1. Open the javadoc.xml in the contexts folder
2. Add below line into the <Configure>:
<Set name=”aliases”>true</Set>
3. Start jetty