{"id":13495533,"url":"https://github.com/avleen/bashttpd","last_synced_at":"2025-03-28T16:32:48.986Z","repository":{"id":4656768,"uuid":"5802485","full_name":"avleen/bashttpd","owner":"avleen","description":"A web server written in bash","archived":false,"fork":false,"pushed_at":"2019-10-08T10:53:23.000Z","size":306,"stargazers_count":1521,"open_issues_count":15,"forks_count":200,"subscribers_count":93,"default_branch":"master","last_synced_at":"2025-03-19T22:52:56.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avleen.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":"2012-09-13T23:34:36.000Z","updated_at":"2025-03-13T07:32:16.000Z","dependencies_parsed_at":"2022-09-19T17:03:02.517Z","dependency_job_id":null,"html_url":"https://github.com/avleen/bashttpd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avleen%2Fbashttpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avleen%2Fbashttpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avleen%2Fbashttpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avleen%2Fbashttpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avleen","download_url":"https://codeload.github.com/avleen/bashttpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246063047,"owners_count":20717729,"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":[],"created_at":"2024-07-31T19:01:35.665Z","updated_at":"2025-03-28T16:32:48.728Z","avatar_url":"https://github.com/avleen.png","language":"Shell","readme":"bashttpd is a simple, configurable web server written in bash\n\nRequirements\n-------------\n\n  1. `bash`, any recent version should work\n  2. `socat` or `netcat` to handle the underlying sockets. \n  3. A healthy dose of insanity\n\nExamples\n---------\n\n      socat TCP4-LISTEN:8080 EXEC:/usr/local/bin/bashttpd\n\nOr\n\n      netcat -lp 8080 -e ./bashttpd\n\nNote that in the `socat` example above, the web server will immediately exit once the first connection closes. If you wish to serve to more than one client - like most servers do, then use the variant:\n\n     socat TCP4-LISTEN:8080,fork EXEC:/usr/local/bin/bashttpd\n\nThis way, a new process is spawned for each incoming connection.\n\n\nGetting started\n----------------\n\n  1. Running bashttpd for the first time will generate a default configuration file, bashttpd.conf\n  2. Review bashttpd.conf and configure it as you want.\n  3. Run bashttpd using netcat or socat, as listed above.\n\nFeatures\n---------\n\n  1. Serves text and HTML files\n  2. Shows directory listings\n  3. Allows for configuration based on the client-specified URI\n\nLimitations\n------------\n\n  1. Does not support authentication\n  2. Doesn't strictly adhere to the HTTP spec.\n\nSecurity\n--------\n\n  1. Only rudimentary input handling.  We would not running this on a public machine.\n\nHTTP protocol support\n---------------------\n\n  403: Returned when a directory is not listable, or a file is not readable\n  400: Returned when the first word of the first line is not `GET`\n  200: Returned with valid content\n  Content-type: Bashttpd uses /usr/bin/file to determine the MIME type to sent to the browser\n  1.0: The server doesn't support Host: headers or other HTTP/1.1 features - it barely supports HTTP/1.0!\n\nAs always, your patches/pull requests are welcome!\n\nTestimonials\n------------\n\n\"If anyone installs that anywhere, they might meet a gruesome end with a rusty fork\"\n    --- BasHTTPd creator, maintainer\n","funding_links":[],"categories":["Shell","Downloading and Serving","HarmonyOS","Applications"],"sub_categories":["Directory Navigation","Windows Manager","Web Frameworks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favleen%2Fbashttpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favleen%2Fbashttpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favleen%2Fbashttpd/lists"}