What is NetFlare Web Server?
NetFlare is a standalone web server written in pure AutoIt3 with some features:
Virtual Hosts
Server-side scripting
For testing virtual host capability, editing etchosts file is required in most cases.
File: C:WindowsSystem32driversetchosts
127.0.0.1 this.is.my.dom
127.0.0.1 private.mycompany.com
Souce code (Daemon Main):
#include "./Lib/Net/Http/HttpServer.au3"
#include "./Lib/IO/Console.au3"
_Main()
Func _Main()
HttpServer_SetPort(80)
HttpServer_RegisterHost("this.is.my.dom")
HttpServer_RegisterHost("private.mycompany.com", @ScriptDir & "\WebRoot\custompath\deeper\private.mycompany.com")
ConsoleWrite("NetFlare Web Server 0.2, By Dhilip89" & @CRLF & @CRLF)
ConsoleWrite("Registered virtual hosts: " & @CRLF)
$HostList = HttpServer_GetRegisteredHosts()
For $i = 0 To HttpServer_CountRegisteredHosts() - 1
ConsoleWrite("[" & $i+1 & "] " & $HostList[$i] & @CRLF)
Next
HttpServer_Start()
ConsoleWrite(@CRLF & "Server is running..." & @CRLF)
While 1
Sleep(1000)
WEnd
EndFunc
- Screenshots (0.2):
Screenshots (0.3):
Animated GIF (Stress testing, using meta refresh): <= Click or download to view
Download Links:
(Version 0.1): http://www.mediafire.com/download/an1gngni6qeh5x9/NetFlare_v0.1.zip
(Version 0.2): http://www.mediafire.com/download/3a88m1sgyrth48a/NetFlare_v0.2.zip
(Version 0.3): http://www.mediafire.com/download/q3prydlbkygl7jd/NetFlare_v0.3.zip