{"id":13700934,"url":"https://github.com/briandowns/simple-httpd","last_synced_at":"2025-08-20T01:31:19.875Z","repository":{"id":55097490,"uuid":"93986229","full_name":"briandowns/simple-httpd","owner":"briandowns","description":"Drop-in replacement for Python SimpleHTTPServer. Provides TLS via Let's Encrypt over HTTP2, and auto generated self-signed certificates.","archived":false,"fork":false,"pushed_at":"2022-01-01T22:37:45.000Z","size":14551,"stargazers_count":232,"open_issues_count":1,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-01T13:11:11.795Z","etag":null,"topics":["golang","http","http-server","http2","letsencrypt","letsencrypt-certificates"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/briandowns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-11T06:30:12.000Z","updated_at":"2024-02-06T10:00:43.000Z","dependencies_parsed_at":"2022-08-14T11:50:42.796Z","dependency_job_id":null,"html_url":"https://github.com/briandowns/simple-httpd","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Fsimple-httpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Fsimple-httpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Fsimple-httpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Fsimple-httpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/briandowns","download_url":"https://codeload.github.com/briandowns/simple-httpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230382858,"owners_count":18216854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","http","http-server","http2","letsencrypt","letsencrypt-certificates"],"created_at":"2024-08-02T20:01:09.466Z","updated_at":"2024-12-19T05:07:29.857Z","avatar_url":"https://github.com/briandowns.png","language":"Go","funding_links":[],"categories":["Go","Servers"],"sub_categories":[],"readme":"# simple-httpd\n\n[![Build Status](https://travis-ci.org/briandowns/simple-httpd.svg?branch=master)](https://travis-ci.org/briandowns/simple-httpd)\n\nsimple-httpd is aimed to be a simple replacement for using `python -m SimpleHTTPServer` to serve local files.  Like [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html), simple-httpd supports HTTP GET and HEAD requests and adheres to the [HTTP/1.1 RFC 2616](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) guidelines.\n\nThe HTML output is a mix of the Python module layout and of an Apache directory listing layout.\n\nIf you're looking for a full featured or even just more capable web server, take a look at [Caddy](https://caddyserver.com/).\n\n## Features\n\n* HTTP2 with [Let's Encrypt](https://letsencrypt.org/) integration for automatic TLS, if enabled.\n* Automatic self signed certificate generation and use, if enabled.\n* Multiple language support: English, Italian, Spanish, Irish. ISO 639-1 are given on the CLI.\n\nCertificates are cached in `${HOME}/.autocert` for reuse.\n\n## Installation\n\n```\ngo get github.com/briandowns/simple-httpd\n```\nor\n```\nmake install\n```\nor, on BSD\n```\ngmake install\n```\n\n### Examples\n\nHTTP/1.1 on default port (8000)\n\n```\nsimple-httpd\n```\n\nHTTP/1.1 on the given port\n\n```\nsimple-httpd -p 8181\n```\n\nHTTP/2 with Let's Encrypt on the default port\n\n```\nsimple-httpd -l some.valid.domain\n```\n\nThe port assignment is for the HTTP server.  The TLS port will be 8081 and both will respond to requests.\n\n```\nsimple-httpd -p 8080 -t some.valid.domain\n```\n\nGenerate a self signed certificate and run the server\n\n```\nsimple-httpd -g\n```\n\nRun server in Spanish\n\n```\nsimple-httpd -l es\n\n## Contributions\n\n* File Issue with details of the problem, feature request, etc.\n* Submit a pull request and include details of what problem or feature the code is solving or implementing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriandowns%2Fsimple-httpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbriandowns%2Fsimple-httpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriandowns%2Fsimple-httpd/lists"}