I have set up a geth node on an EC2 instance.
I'm running it with tmux to make sure it continues to run after I disconnect from the server.
To make the node remotely accessible I followed this NGINX guide: https://www.nginx.com/resources/wiki/start/topics/recipes/geth/
All the instructions are followed exactly as written, except that some of the referenced commands were deprecated, and I had to update them:
geth --syncmode "fast" --http --http.api "eth, net, web3, personal" --ws --ws.origins "*" --ws.api "web3, eth" --maxpeers 100 --ws.addr "127.0.0.1" --http.addr "127.0.0.1" --http.corsdomain "*" --http.vhosts "*".
The NGINX recipe is copied over into a new file in
In the security group used for the instance port 80 is open for IPv3 and IPv4, with no restriction on source.
When I try Public IPv4 DNS as my endpoint when making a request with web3, I get a 404 error.
Is there anything obvious that I should change to make my geth node work with web3?
EDIT: The NGINX welcome screen shows up for my root url at least.