{"id":23674559,"url":"https://github.com/kjdev/nginx-internal-redirect","last_synced_at":"2026-04-28T23:34:12.237Z","repository":{"id":268632261,"uuid":"890706150","full_name":"kjdev/nginx-internal-redirect","owner":"kjdev","description":"Nginx module for internal redirect","archived":false,"fork":false,"pushed_at":"2024-12-18T21:50:57.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T10:49:26.786Z","etag":null,"topics":["nginx"],"latest_commit_sha":null,"homepage":"","language":"C","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/kjdev.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":"2024-11-19T03:16:42.000Z","updated_at":"2024-12-18T21:50:51.000Z","dependencies_parsed_at":"2024-12-18T01:25:55.703Z","dependency_job_id":"f48ed597-91c0-4c10-8374-500c9a1e2941","html_url":"https://github.com/kjdev/nginx-internal-redirect","commit_stats":null,"previous_names":["kjdev/nginx-internal-redirect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kjdev/nginx-internal-redirect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fnginx-internal-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fnginx-internal-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fnginx-internal-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fnginx-internal-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjdev","download_url":"https://codeload.github.com/kjdev/nginx-internal-redirect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fnginx-internal-redirect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27977657,"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-12-23T02:00:07.087Z","response_time":69,"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":["nginx"],"created_at":"2024-12-29T13:27:33.602Z","updated_at":"2026-04-28T23:34:12.229Z","avatar_url":"https://github.com/kjdev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx internal_redirect Module\n\n## Overview\n\nnginx-internal-redirect is an internal redirect dynamic module for nginx. Unlike [rewriting URIs](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html), the redirection is made after checking [request](http://nginx.org/en/docs/http/ngx_http_limit_req_module.html) and [connection](http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html) processing limits, and [access](http://nginx.org/en/docs/http/ngx_http_access_module.html) limits.\n\n\u003e This module is heavily inspired by the nginx official [ngx_http_internal_redirect_module](http://nginx.org/en/docs/http/ngx_http_internal_redirect_module.html).\n\n**License**: MIT License\n\n### Key Features\n\n- **Internal Redirect**: Performs internal redirect to a regular or named location in the precontent phase\n- **Variable Support**: Supports nginx variables in the redirect URI\n- **Phase Ordering**: Redirects after limit_req / limit_conn / access checks, enabling flexible control such as post-authentication rate limiting\n- **Dynamic Module**: Can be built and loaded as an nginx dynamic module\n\n## Quick Start\n\nSee [docs/INSTALL.md](docs/INSTALL.md) for installation instructions.\n\n### Minimal Configuration\n\n```nginx\nserver {\n    listen 80;\n\n    location / {\n        internal_redirect @backend;\n    }\n\n    location @backend {\n        internal;\n        proxy_pass http://upstream;\n    }\n}\n```\n\nThis configuration internally redirects requests to `/` to the named location `@backend`, which proxies to the upstream server.\n\n## Directives\n\n| Directive | Description | Context |\n|---|---|---|\n| `internal_redirect` | Set the URI for internal redirection | server, location |\n\nSee [docs/DIRECTIVES.md](docs/DIRECTIVES.md) for detailed directive reference.\n\n## Related Documentation\n\n**Configuration \u0026 Operations**:\n\n- [docs/DIRECTIVES.md](docs/DIRECTIVES.md): Directive Reference\n- [docs/EXAMPLES.md](docs/EXAMPLES.md): Configuration Examples\n- [docs/INSTALL.md](docs/INSTALL.md): Installation Guide\n- [docs/SECURITY.md](docs/SECURITY.md): Security Guidelines\n- [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md): Troubleshooting Guide\n\n**Reference**:\n\n- [docs/COMMERCIAL_COMPATIBILITY.md](docs/COMMERCIAL_COMPATIBILITY.md): Commercial Version Compatibility\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjdev%2Fnginx-internal-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjdev%2Fnginx-internal-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjdev%2Fnginx-internal-redirect/lists"}