As a DevOps engineer or system administrator, you might want to quickly spin up a HTTP server that allows to access files from other machines or to test functionality of programs and apps. Doing so would traditionally require you to install and configure a web server such as nginx or Apache, or to run a Docker image with volumes to make your target files accessible.

With .NET file-based apps, we can create script files that are easily capable of using any library hosted on nuget. In this article, we will demonstrate how to use the GenHTTP webserver to serve a local directory via HTTP.

Pre-Requisites

To run the script, you will need the [.NET SDK](https://dotnet.m…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help