Skip to content
/ socws Public

If you have no apache, nginx etc, but you need a web server

License

Notifications You must be signed in to change notification settings

roman4e/socws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

If you have no apache, nginx etc, but you need a web server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published