Skip to content

Multi threaded Linux web server with file system traversing and perl script execution

Notifications You must be signed in to change notification settings

jgdevroman/mother

Repository files navigation

Mother

Linux web server that can host static web sites, traverse through the file system and execute Pearl scripts. Also able to create multiple connections at the same time through multi threading.

Installing

To clone and compile this application you need Git, make and GCC on your system.

To install the programm, clone this repository to an arbitary folder:

$ git clone https://github.com/jgdevroman/mother.git

And compile the program:

$ make all

How to use

The web server can be launched by the command:

$ ./mother --wwwpath=<dir> [--port=<p>] [--threads=<t>]
  • --wwwpath - Full path of an arbitary folder where the root folder of the web site is stored.
  • --port - Optional: Specify an arbitary port. Default: 2016
  • --threads - Optional: Specify arbitary number of threads. Default: 8

After that, you can access your server by inserting the following URL in your browser:

http://localhost:<port> (if --port is not set: 2016)

Test

You can test the server by using the test site "wwwdir"

$ ./mother --wwwpath=</path/to/the/installed/folder/wwwdir> [--port=<p>] [--threads=<t>]

Authors

  • Roman Shirasaki jgdevroman- connection-mt.c, jbuffer.c, request-httpx.c, sem.c

  • University of Erlangen/Nuremberg Department of Distributed Systems and Operating Systems - Makefile, libmother.a

About

Multi threaded Linux web server with file system traversing and perl script execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published