{"id":15613756,"url":"https://github.com/bostrt/mod_serverheader","last_synced_at":"2025-04-06T14:28:12.290Z","repository":{"id":137793077,"uuid":"82992952","full_name":"bostrt/mod_serverheader","owner":"bostrt","description":"Override Apache HTTPD Server header","archived":false,"fork":false,"pushed_at":"2020-07-31T15:57:50.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T20:35:17.001Z","etag":null,"topics":["httpd","module"],"latest_commit_sha":null,"homepage":"https://robertbost.wordpress.com/2017/03/19/introducing-mod_serverheader/","language":"C","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/bostrt.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-24T02:32:30.000Z","updated_at":"2023-04-05T03:48:04.000Z","dependencies_parsed_at":"2023-05-22T14:00:29.386Z","dependency_job_id":null,"html_url":"https://github.com/bostrt/mod_serverheader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fmod_serverheader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fmod_serverheader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fmod_serverheader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bostrt%2Fmod_serverheader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bostrt","download_url":"https://codeload.github.com/bostrt/mod_serverheader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247494869,"owners_count":20947949,"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":["httpd","module"],"created_at":"2024-10-03T07:01:11.684Z","updated_at":"2025-04-06T14:28:12.270Z","avatar_url":"https://github.com/bostrt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mod_serverheader\n\u003ca href=\"https://copr.fedorainfracloud.org/coprs/bostrt/mod_serverheader/package/mod_serverheader/\"\u003e\u003cimg src=\"https://copr.fedorainfracloud.org/coprs/bostrt/mod_serverheader/package/mod_serverheader/status_image/last_build.png\" /\u003e\u003c/a\u003e\n\n## Installation\n\n#### Fedora users\n```\n# dnf copr enable bostrt/mod_serverheader\n# dnf install mod_serverheader\n```\n#### RHEL users\nThe `copr` plugin is now available for RHEL in Optional repos:\n```\n# yum install yum-plugin-copr\n# yum copr enable bostrt/mod_serverheader\n# yum install mod_serverheader\n```\n#### RHEL alternative\nDrop YUM repo file into your `/etc/yum/repos.d/`. Here's the repo file for [RHEL 7](https://copr.fedorainfracloud.org/coprs/bostrt/mod_serverheader/repo/epel-7/bostrt-mod_serverheader-epel-7.repo).\n\n\n## Configuration\n\n`/etc/httpd/conf.d/mod_serverheader.conf`\n\n## ServerHeader Directive \n\n[Description](https://httpd.apache.org/docs/2.4/mod/directive-dict.html#Description): Modify Server header contents  \n[Syntax](https://httpd.apache.org/docs/2.4/mod/directive-dict.html#Syntax): ServerHeader *value*  \n[Context](https://httpd.apache.org/docs/2.4/mod/directive-dict.html#Context): server config, virtual host  \n[Module](https://httpd.apache.org/docs/2.4/mod/directive-dict.html#Module): mod_serverheader  \n\n-----------\n\nThis directive allows you to override Apache HTTPD's `Server` response header. In addition to configuring this directive, you may also need to modify your [`ServerTokens`](https://httpd.apache.org/docs/2.4/mod/core.html#servertokens) directive to allow for a longer value to be used.\n\n#### Example Usage:\n```\nLoadModule serverheader_module modules/mod_serverheader.so\nServerTokens Full\nServerHeader my-server\n```\n\nClient will see this:\n```\n# curl -I http://example.com/\nHTTP/1.1 200 OK\nDate: Sat, 25 Feb 2017 01:47:40 GMT\nServer: my-server ◀◀◀◀◀◀◀◀\nContent-Length: 8\nContent-Type: text/html; charset=iso-8859-1\n```\n\n## Building\n```\n# git clone https://github.com/bostrt/mod_serverheader.git\n# cd mod_serverheader\n# apxs -i -a -c mod_serverheader.c\n```\n\n## Motivation\n\nhttps://robertbost.wordpress.com/2017/03/19/introducing-mod_serverheader/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbostrt%2Fmod_serverheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbostrt%2Fmod_serverheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbostrt%2Fmod_serverheader/lists"}