I'm a web developer servicing multiple clients. With Ubuntu 16.04 on my local laptop, how would I create a batch script so that I can toggle between using NGINX and Apache Web Server smoothly so that I could install both but only fire up the web server daemon I need on a given project? I do realize, however, that I'd have to have an .htaccess in some cases on one, and a regex config on the other (because of no .htaccess). I also realize that I'd have to install the website under both /etc/*/sites-enabled.
Note also that I set me.com in my /etc/hosts to 127.0.0.1. So, I'd be toggling what responds on me.com, unless you know of a way that I can have both running at the same time but have ng.com respond from the nginx, and ap.com respond from the apache.