{"id":18115507,"url":"https://github.com/d12/bash-http-server","last_synced_at":"2025-08-09T04:08:49.159Z","repository":{"id":90400589,"uuid":"61500654","full_name":"d12/Bash-HTTP-Server","owner":"d12","description":"Fully (sort of) functional bash HTTP server. ","archived":false,"fork":false,"pushed_at":"2017-07-15T15:36:40.000Z","size":4,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T10:48:00.368Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-19T21:13:16.000Z","updated_at":"2019-06-19T11:10:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cb8669c-368c-4443-b8b3-cc79055ccf72","html_url":"https://github.com/d12/Bash-HTTP-Server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d12/Bash-HTTP-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d12%2FBash-HTTP-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d12%2FBash-HTTP-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d12%2FBash-HTTP-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d12%2FBash-HTTP-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d12","download_url":"https://codeload.github.com/d12/Bash-HTTP-Server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d12%2FBash-HTTP-Server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269528118,"owners_count":24432572,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-01T03:10:10.273Z","updated_at":"2025-08-09T04:08:49.112Z","avatar_url":"https://github.com/d12.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash-HTTP-Server\nFully (sort of) functional bash HTTP server. \n\n## What it does\n- Responds to GET requests with webpages/files\n- Can serve text and binary files\n- Correctly sets response headers (including MIME type)\n- Correctly sets HTTP response codes, and can load error pages for each error\n- Ran a bootstrap webpage off of it as a test, all works perfectly\n\n## What it doesn't do\n- Execute PHP\n- Handle URL parameters (easy fix, it will maybe be done some day)\n- Run on a machine that means anything to you (there are a few minor security issues)\n\n## Why?\n- Wanted to learn bash\n- Wanted to learn more about networking and architecture\n- Decided to put em together\n\n## How to use it\n1. Put both files on your machine\n2. `./server.sh`\n3. Script will now handle GET requests to the IP on port 80 (default HTTP port)\n\nBy default, server root is `~/server`, can be configured by changing the first line in `grab_resource` to something else.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd12%2Fbash-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd12%2Fbash-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd12%2Fbash-http-server/lists"}