Giter Site home page Giter Site logo

diepmv / simple-httpd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from briandowns/simple-httpd

0.0 1.0 0.0 14.19 MB

Drop-in replacement for Python SimpleHTTPServer. Provides TLS via Let's Encrypt over HTTP2 and auto generated self-signed certificates.

License: Apache License 2.0

Makefile 3.97% Shell 9.59% Go 86.44%

simple-httpd's Introduction

simple-httpd

Build Status

simple-httpd is aimed to be a simple replacement for using python -m SimpleHTTPServer to serve local files. Like SimpleHTTPServer, simple-httpd supports HTTP GET and HEAD requests and adheres to the HTTP/1.1 RFC 2616 guidelines.

The HTML output is a mix of the Python module layout and of an Apache directory listing layout.

If you're looking for a full featured or even just more capable web server, take a look at Caddy.

Features

  • HTTP2 with Let's Encrypt integration for automatic TLS if enabled
  • Automatic self signed certificate generation and use if enabled

Certificates are cached in ${HOME}/.autocert for reuse.

Installation

go get github.com/briandowns/simple-httpd

or

make install

or, on BSD

gmake install

Examples

HTTP/1.1 on default port (8000)

simple-httpd

HTTP/1.1 on the given port

simple-httpd -p 8181

HTTP/2 with Let's Encrypt on the default port

simple-httpd -l some.valid.domain

The port assignment is for the HTTP server. The TLS port will be 8081 and both will respond to requests.

simple-httpd -p 8080 -t some.valid.domain

Generate a self signed certificate and run the server

simple-httpd -g

Contributions

  • File Issue with details of the problem, feature request, etc.
  • Submit a pull request and include details of what problem or feature the code is solving or implementing.

simple-httpd's People

Contributors

briandowns avatar davecheney avatar guitarbum722 avatar joaofnds avatar moosh3 avatar scottjbarr avatar tidwall avatar usedbytes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.