Skip to content

.NET Core cross-platform application that works as python2 SimpleHTTPServer module

License

Notifications You must be signed in to change notification settings

ijat/SimpleHTTPServer-.NET

Repository files navigation

SimpleHTTPServer .NET

.NET Core cross-platform application that works as python2 SimpleHTTPServer module, but published as single binary and support https.

Only support pfx file as private key.

Current working directory will be used as webroot directory.

If index.html exists it will be hosted instead of directory listing.

Usage

HTTP

Open command prompt or terminal:

shsn [port]

Example:

shsn.exe 8080

HTTPS

shsn [port] [pfx-file] [pfx-password]

Example:

shsn.exe 9000 "C:\Users\Admin\My Certs\localhost.pfx" 1234

Publish and Packing

Binaries has been published and packed using dotnet publish and dotnet-warp respectively.

To publish this project, go to folder that contains SimpleHTTPServer.csproj:

dotnet publish

Then download dotnet-warp and follow its example.

About

.NET Core cross-platform application that works as python2 SimpleHTTPServer module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages