GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NullArray/HTTP-Server: Basic HTTP Server with a feature to invoke a shell in the dir the files are being served from.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
server.py
server.py
 
 

Repository files navigation

HTTP-Server

Basic HTTP Server with a feature to invoke an OS shell in the dir the files are being served from.

I was in need of a quick HTTP-Server for a project I am working on at the time of this post. Of course with Python you could use the one-liner python -m SimpleHTTPServer. However I figured my server could use some more features, for convenience sake I have added the option to invoke an OS shell in the directory your files are being served from. This is done so that you can easily move or copy the files you'd like to serve into the relevant directory. I have also added the option to define a host and port of your choosing but a default setting of 127.0.0.1:8000 is included as well.

Usage

Clone the repo with;

git clone https://github.com/NullArray/HTTP-Server.git

After which you can place the server.py file into the directory you wish to serve files from. Start it from the command line and simply answer the prompts. When the server is configured it will start serving the files in said directory.

Personally i just put the execution of the script on an alias like so.

alias serve='cd /home/$USER/server && python server.py'

Easier than a one-liner and with extra features to boot in my humble opinion.

Dependencies

For this to work you will need the SimpleHTTPServer and blessings modules.

About

Basic HTTP Server with a feature to invoke a shell in the dir the files are being served from.

Topics

httphttp-serverlocal-serverpythonserversimplehttpserver

Resources

Readme
GPL-3.0 license
Activity

Stars

12 stars

Watchers

1 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.