Switch Webservers from NGINX to Apache?

I have a functioning Nextcloud (Version 22.2.0) running on Ubuntu 20.04 with NGINX version 1.18.0.

I would like to switch web servers to Apache.

Is there any quick and easy way to do this on the fly?

Not really on the fly, since there is no way you can get around having to shut down the running web server before starting the replacement.

Make all of your configurations in apache, then shutdown nginx and start apache. If you start apache immediately, it may appear almost seamless.

Thanks. That is about as seamless as can be expected. I will set up Apache ASAP and mark as solved if it works.