Consider Caddy as an alternative. Nginx is no better. Both Apache httpd and nginx are old and don’t support newer protocols like HTTP/3. Maybe I’m wrong.
Another issue is with Apache httpd’s routing. Removing the IP messes up routing sometimes when using mod_rewrite.