2024-07-11 18:18:29 +01:00
|
|
|
# HTTPServer
|
|
|
|
|
|
|
|
This is a simple HTTP server meant to emulate python's SimpleHTTPServer module.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-07-11 20:36:27 +01:00
|
|
|
```httpserver [-h] [--cgi] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]```
|
|
|
|
|
|
|
|
## Installing
|
|
|
|
|
|
|
|
First, have Go installed. Latest version, please. I'm talking about you debian.
|
|
|
|
|
|
|
|
Run as root
|
|
|
|
|
|
|
|
```
|
|
|
|
CDIR=$PWD
|
|
|
|
cd /tmp
|
2024-10-25 20:40:41 +01:00
|
|
|
git clone https://git.ailur.dev/ailur/httpserver --depth=1
|
2024-07-11 20:36:27 +01:00
|
|
|
cd httpserver/httpserver
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Compiling
|
|
|
|
```
|
2024-10-25 20:40:41 +01:00
|
|
|
git clone https://git.ailur.dev/ailur/httpserver --depth=1
|
2024-07-11 20:36:27 +01:00
|
|
|
cd httpserver/httpserver
|
|
|
|
make
|
|
|
|
```
|
|
|
|
This creates the binary "httpserver"
|