This is more to a geeky post rather than something the public might be enjoying reading. If you don't know anything about web server, then I'll suggest you move along. It's gonna be boring.
Long story short, I'm experimenting a more optimized web server but with a solid justified addition as a reason to move from Nginx. So here am I wondering around OpenLiteSpeed. At a glance, it's somehow very complicated because they have tons, I mean tons of configuration that you might need to, duh, configure. But after learning a few curves here and there, I finally understand probably 2/3 of it. Probably. But I got some essentials running such as multiple virtualhost (multiple domain) with or without SSL (LetsEncrypt). Including pointing SSL to the OpenLiteSpeed Web Admin itself!
Here comes the long story, I mean, how I get into this setup. Deploying a box (server) from DigitalOcean or Vultr, AWS, GCP and others are somewhat easy. With just a few clicks you're good to go with your box and proceed setting up your deployment environment. Some probably gonna be using Docker to setup it in an instant, but I personally don't root into Docker thing because it's way complicated just to do simple stuff. For example, when you need Nginx running in just a line, you can just do it with
apt install nginx and you're good buddy. Just head on
/var/www/html/<do your thing>. Server is up and running. Why would you complicate stuff with Docker since Docker is also wasn't really meant for Production environment unless the container was made to do so. Just vanilla Nginx seems promising, but still there's quite a few catch. Adjusting your
fastcgi and more everytime you're creating a new virtualhost. Of course, there are some good script online that can help you with it, for example, my own collaboration with najashark on improving bash script available on github that never really work. You can check our repository here. It's not really the best, but when in hurry, it works just like what you wanted it to be.
Then it got me, struck me in the head, about the easiness of
.htaccess file on Apache web server. I mean, why not, it's one of the simplest rewrite rule that you can get online. Doubting it? Why would even people use Apache and slap Nginx on top of it as proxypass? Because that. It's not that hard to write some rewrite rule on nginx but to me the process is somewhat tedious. No joking, I know for some experts out there, this is just a peace of meat that they can munch at any time. But for some, or for someone like me that have been boggled with IIS, Apache, Nginx, Express and others, having to remember every single one of it is tiring.
So it got me thinking, is there any other advance yet simple web server, lightweight and fast yet feature rich? OpenLiteSpeed. I know OLS for quite a long time but never bother to try it out. So I take a jump today on trying the magic. At first, I almost giving up because there's not much tutorial online for me to follow except for CentOS. Well, it's not that I don't like CentOS, but I prefer Ubuntu because it's very easy to find guides for managing Ubuntu Server on the internet. Just not this one case. One of the guide recommending the reader to self compile which I do prefer that way but unfortunately I got connection time out while trying to
make. I've got to find another way. That doesn't stop me from digging the 101, I mean, the documentation given by OLS. Skipping other nonsense tutorial, I just add OLS repository to my Ubuntu and with simple
apt install openlitespeed I literally good to go open port :7080 and access the lovely 'it's complicated' Web Admin which I'll call it panel. So the panel is complete, I guess? With graph and this and that and graceful restart button which is a super bonus, you don't have to ssh into your server anymore.
From there I learned the curves and finally after around 2-3 hours exploring, I got it working like what I wanted it to be. With a bonus of securing the panel itself so I don't need to worry about it that much.
I'll do some basic installation guide and walkthrough in Part 2 of this article. Stay geeky.