Your source for Linux-related fun and learning!
It makes for a more brittle system, though, having everything run through just the web server. Plus, in a lot of cases, the web server isn’t as efficient. Add to that it’s more complicated to configure if you pile stuff under the /var/www/html/ folder; most service type stuff has only a few html pages that you’d even want to expose, with the rest being applicationfiles that you definitely don’t want exposed.
It ends up being a lot less complicated to let services stand alone and be proxied. Nginx isn’t hard to set up.
Yeah for regular websites, apache lets you do either domain-based or ip-based virtual hosting, too.
2 more replies