A web server written in bash | |
Sunday Oct 16 9:03:28 2022 | |
------------------------------ | |
I had wanted to try a web server written in bash for years, well th | |
wish just came true with bashttpd available at | |
https://github.com/avleen/bashttpd | |
It is pretty easy to use, you only need to download the script, mak | |
it executable and launch it. There are several launch options, one | |
single connection or accepting multiple connections. At launch time | |
a default config file is created, bashttpd.conf, you can configure | |
several things, especially the files you want to serve. | |
In order to connect to the server, ie, to see the file it is servin | |
use the address of the machine using port number 8080. For example | |
the server has the following ip: 10.100.120.2 open a web browser | |
and type http://10.100.120.2:8080 and that's it. | |
Two important considerations here: | |
- Never use it on the web, it is highly dangerous and insecure. Us | |
it at home or in a private network (Its main use is for testing stu | |
- "If anyone installs that anywhere, they might meet a gruesome en | |
with a rusty fork" --- BasHTTPd creator, maintainer | |
Enjoy it | |