It brings the power of Lua scripting in your IIS.
Download MSI file from following page. (x64 version)
https://github.com/shibayan/iislua/releases
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<iislua>
<beginRequest scriptPath="C:\inetpub\beginrequest.lua" />
<mapPath scriptPath="C:\inetpub\mappath.lua" />
</iislua>
</system.webServer>
</configuration>
iis.exit(404)
iis.redirect("http://buchizo.wordpress.com/")
if iis.req.http_method() ~= "POST" then
iis.exit(405)
end
req_headers = iis.req.get_headers()
if req_headers["Origin"] ~= nil then
iis.resp.set_header("Access-Control-Allow-Origin", req_headers["Origin"])
end
if iis.req.get_url() == "/" then
iis.exec("/iisstart.htm")
end