This a webserver made in the night while i was bored
- Open
config.ini
- 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 - Change The options as you like or leave them as default
- Run
python main.py
,if 1 <= PORT <= 1023 Run it as administrator
Just contact me check the github profile
Ashita Webserver == 1.0
Python == 3.X
Thanks for passing by