- Notifications
You must be signed in to change notification settings - Fork1
Simple HTTP server written in Java
License
Tomiwa-Ot/java-web-server
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple multithreaded HTTP server built with the Producer-Consumer design pattern and synchronised with blocking queues.
- Directory Listing
- Basic HTTP Authentication
- Logs all requests
webserver.log
The default port used is 8080. It can be modified either by changing the port value inproperties.json or supply it as an argument in the console.
javac App.javajava App <port_number>
To enable, change the username value fromnull to<your_username> and password value fromnull to a Bcrypt hash of the password inproperties.json
{"username" :"your_username","password" :"Bcrypt hash",}To disable, set the username and password values asnull.
The number of consumer threads and blocking queue size can be modified inproperties.json
{"worker_threads" :20,"connection_queue" :30}- Request for basic authentication if username & password are set
- Allow user to specify web root folder
About
Simple HTTP server written in Java
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.


