This is a simple web server for Windows.
Tip
Compile with the C# compiler installed by default on Windows.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
Compile as below:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe SimpleHttpServer.cs
Alternatively you can use build.bat .
usage: SimpleHttpServer [-r DIR] [-p PORT] [-b ADDR]
or SimpleHttpServer [-r DIR] [-t]
or SimpleHttpServer [-r DIR] [-P PREFIX]
options:
-r DIR: Specify the document root. The default is the current directory.-p PORT: Specify the port number to listen on. The default is 8000-b ADDR: Specify the address to bind to. The default is to accept all addresses.-t: Use a prefix that does not require admin privileges (http://+:80/Temporary_Listen_Addresses/)-P PREFIX: specify a prefix.
Administrative privileges are required unless the -t option is used.
Copyright (C) 2023 SATO, Yoshiyuki
This software is released under the MIT License. https://opensource.org/licenses/mit-license.php