{"id":18086222,"url":"https://github.com/shibayan/iislua","last_synced_at":"2025-04-12T22:36:40.682Z","repository":{"id":34070795,"uuid":"37860698","full_name":"shibayan/iislua","owner":"shibayan","description":"It brings the power of Lua scripting in your IIS.","archived":false,"fork":false,"pushed_at":"2022-07-30T05:01:53.000Z","size":2952,"stargazers_count":17,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T16:46:35.303Z","etag":null,"topics":["iis","lua-script"],"latest_commit_sha":null,"homepage":"http://shibayan.github.io/iislua/","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/shibayan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"shibayan"}},"created_at":"2015-06-22T14:38:32.000Z","updated_at":"2023-07-09T00:05:57.000Z","dependencies_parsed_at":"2022-07-16T23:16:08.569Z","dependency_job_id":null,"html_url":"https://github.com/shibayan/iislua","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fiislua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fiislua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fiislua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibayan%2Fiislua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shibayan","download_url":"https://codeload.github.com/shibayan/iislua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248642921,"owners_count":21138352,"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":["iis","lua-script"],"created_at":"2024-10-31T16:07:19.567Z","updated_at":"2025-04-12T22:36:40.654Z","avatar_url":"https://github.com/shibayan.png","language":"C++","readme":"iislua\n================\n\n![Build](https://github.com/shibayan/iislua/workflows/Build/badge.svg)\n[![Release](https://img.shields.io/github/v/release/shibayan/iislua?include_prereleases\u0026sort=semver)](https://github.com/shibayan/iislua/releases/latest)\n[![Downloads](https://img.shields.io/github/downloads/shibayan/iislua/total.svg)](https://github.com/shibayan/iislua/releases/latest)\n[![License](https://img.shields.io/github/license/shibayan/iislua.svg)](https://github.com/shibayan/iislua/blob/master/LICENSE)\n\nIt brings the power of Lua scripting in your IIS.\n\n## Install\n\nDownload MSI file from following page. (x64 version)\n\nhttps://github.com/shibayan/iislua/releases\n\n## Configuration\n\n### Web.config\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cconfiguration\u003e\n  \u003csystem.webServer\u003e\n    \u003ciislua\u003e\n      \u003cbeginRequest scriptPath=\"C:\\inetpub\\beginrequest.lua\" /\u003e\n      \u003cmapPath scriptPath=\"C:\\inetpub\\mappath.lua\" /\u003e\n    \u003c/iislua\u003e\n  \u003c/system.webServer\u003e\n\u003c/configuration\u003e\n```\n\n## Usage\n\n### Return status code\n\n```lua\niis.exit(404)\n```\n\n### Redirect\n\n```lua\niis.redirect(\"http://buchizo.wordpress.com/\")\n```\n\n### Refuse http method\n\n```lua\nif iis.req.http_method() ~= \"POST\" then\n    iis.exit(405)\nend\n```\n\n### Cross domain access control\n\n```lua\nreq_headers = iis.req.get_headers()\n\nif req_headers[\"Origin\"] ~= nil then\n    iis.resp.set_header(\"Access-Control-Allow-Origin\", req_headers[\"Origin\"])\nend\n```\n\n### Rewrite to other url\n\n```lua\nif iis.req.get_url() == \"/\" then\n   iis.exec(\"/iisstart.htm\")\nend\n```\n","funding_links":["https://github.com/sponsors/shibayan"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshibayan%2Fiislua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshibayan%2Fiislua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshibayan%2Fiislua/lists"}