Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 678 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 678 Bytes

Socat-driven web server handled by bash and perl handlers

It was written just for experience.

Requires socat v1.7.3+

Change work dir into the project directory before start.

  • Run: sudo ./alived username ./handler sudo ./alived username ./phandler

    Where username is your default user (not root).

  • Stop: sudo ./alived -k

  • Restart: sudo ./alived -s

  • Debug handler: sudo ALIVED_DEBUG=1 ./alived username ./handler

  • Debug daemon: sudo ALIVED_BASHDEBUG=1 ./alived username ./handler

Works on port 10101 if not specified -p PORT

Realized first level mapping: /logs and /logs/asdf is mapped on logs handler.

Handlers are placed in /routing folder.