/Ashita-WebServer

This a webserver made in the night while i was bored

Primary LanguagePython

Ashita-WebServer

This a webserver made in the night while i was bored

Usage

  1. Open config.ini
  2. You'll see
    HOST = The host where the server will listen to ,default 0.0.0.0
    PORT = The port where the server will listen to ,default 8080
    INDEXFILE = The File the server should send if the browser asks for / ,default index.html
    DEFAULTDIR = The directory where the files are in ,including INDEXFILE ,default www/
    REDIRECT = Enable/Disable Redirection if 404 found (currently not working well), default false
    REDIRECT_LOCATION = If REDIRECT is true ,it will redirect to the page typed here,default /
    404PAGE = The Location of 404 Not Found Page, default errors/404.html
    404_ERROR_PAGE_TOGGLE = If disabled the browser will show its default 404 Page else The browser will show 404PAGE, default false
  3. Change The options as you like or leave them as default
  4. Run python main.py ,if 1 <= PORT <= 1023 Run it as administrator

Contribute

Just contact me check the github profile

Versions

Ashita Webserver == 1.0
Python == 3.X

Thanks

Thanks for passing by