I've got a mix of machines that are joined to Entra and some that are still on-premises. Although Cloud Kerberos Trust helps with accessing the on-prem stuff, my machines sometimes recognize the internal network as a private or, oddly, a public network. I know there's a NetworkPolicy CSP I can deploy for Windows to check network reachability to classify it as a domain network. However, I don't have any internal web services that can be accessed via browser without first being redirected to a login page or lacking proper HTTPS. Running IIS seems excessive for my needs. I'm looking for a lightweight web server to host a single static webpage, where I can easily apply a certificate to help Windows NLA recognize my internal network correctly. Ideally, I want something running on Windows to avoid managing another VM, but a small Linux VM could also work if necessary.
5 Answers
I suggest doing a quick nmap scan to confirm there aren't any existing web servers on your network, like those from a router or ISP modem. If that doesn't work out, you could use a simple Docker image, possibly with Nginx Proxy Manager for easy certificate renewal. You could also go super easy and just run `python -m http.server` if you have Python installed.
If you're comfortable with Linux, Apache is a solid choice. Just remember, Apache runs on Windows too, so you could use that on your existing setup without any major fuss.
You might want to consider using a Raspberry Pi Zero for this if you have one lying around. It's lightweight and can serve your needs. Otherwise, you're likely looking at a VM with something like IIS or Apache if you want to go that route.
Have you checked what you're using for DNS and your current firewall setup? It might give you clues if you're having trouble with network recognition.
For a simple setup, you should try Caddy. It's great for serving tiny websites and takes care of SSL certificates automatically with very little configuration. It's available on both Linux and Windows!
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures