Java
The following are some Java apps I've written. I use them, and so can you.
If you do use any of these programs, leave a comment - I'd like to know how they perform. If you have any requests, feel free to bend my ear too.
Apps: jamserve
jamserve Updated 2007/11/21
This is a simple Java web server - GET and HEAD are implemented, and it's approaching HTTP 1.1 conditional conformance.
It should compile with Sun's 'javac' from JDK 1.5 up and GCC 4.1 (with libgcj). Tested and working with Sun's JRE on Linux and Windows XP. Pre-compiled .jar files are included.
Points of note:
- As far as I can test on my local machine, it's secure. It will only serve files below the serving directory, and any file permissions will, of course, apply. Any files which would normally be 403-Forbidden are 404-Not Found instead, to help stop any information leak.
- There's only limited Content-Type information set. If you want more, have a look at ContentType.java.
- It's one-thread-per-connection.
- jamserve requires the included portforward utility - this allows you to run jamserve as an unprivileged user for security, but still bind to port 80.
- There are no configuration files, just a few command line arguments.
Leave a comment