I want to set up my RPi3 to be a 1-port router running a webserver.
I know how to make a wireless access point and connect my PC via hostapd/dnsmasq, and I know how to set up a webserver on the Pi.
However, I want to do it WITHOUT wireless. I want to plug my PC's ethernet cable into the single port on the RPi. That's all. No internet.
So I guess I need the Pi to be the world's lamest router: one port and no WAN.
Can someone help direct me with keywords or topics I should google? I'm not entirely sure what I'm trying to do or what it is called. Googling for "make my rpi a router" turns up thousands of wifi posts and no wired tutorials.
EDIT: Ok, so let's set this up.
Using Raspbian V10. So /etc/networks/interfaces should be....
auto eth0 iface eth0 inet static address 10.0.2.1/24 gateway 10.0.2.1
How do I tell eth0 to "be a server"? Is there a good book / website for this?