Hello nice people,
I'm using this image: https://marketplace.digitalocean.com/apps/openlitespeed-wordpress that comes with litespeed integrated. I'm not a server guy so first of all, excuse any stupid stuff that I say
What I'm doing is that I setup my droplets via php, through DO API, and I want to configure litespeed the same way. On top of that, I have a somewhat specific situation with vhosts that I will explain below.
My ideal setup consist of the following.
1. Setup vhost for main doman, without ssl
2. Setup vhost for alt domain, that targets main domain directory (i can handle wordpress side and implications of this just fine)
3. When user points the domain to that droplet, update vhost for main domain with ssl info.
My problems:
1. If I configure everything and it seems to be working fine, when I connect via bash ssh this thing runs - /opt/domainsetup.sh and it screws up my config - all my domains get 404. I think it removes listeners.
2. It seems that server is not ready immediately when droplet gets up and running - /opt/domainsetup.sh and .litespeed_password are not available immediately, as far as I can see.
3. When I connect via php to ssh, domainsetup.sh does not run (i figured its because i do not connect in interactive mode (no bash?)), which makes me worried that some other stuff does not get done as well?
4. Its spotty if things will work once I do step number 3 rom the list above (when I add ssl).
I'm using official docs for all my vhost manipulation: https://docs.litespeedtech.com/cloud/images/wordpress/#how-do-i-create-additional-virtual-hosts
If anyone can shed any light on whats going on and what I might be dong wrong, that would be awesome.
I'm using this image: https://marketplace.digitalocean.com/apps/openlitespeed-wordpress that comes with litespeed integrated. I'm not a server guy so first of all, excuse any stupid stuff that I say
What I'm doing is that I setup my droplets via php, through DO API, and I want to configure litespeed the same way. On top of that, I have a somewhat specific situation with vhosts that I will explain below.
My ideal setup consist of the following.
1. Setup vhost for main doman, without ssl
2. Setup vhost for alt domain, that targets main domain directory (i can handle wordpress side and implications of this just fine)
3. When user points the domain to that droplet, update vhost for main domain with ssl info.
My problems:
1. If I configure everything and it seems to be working fine, when I connect via bash ssh this thing runs - /opt/domainsetup.sh and it screws up my config - all my domains get 404. I think it removes listeners.
2. It seems that server is not ready immediately when droplet gets up and running - /opt/domainsetup.sh and .litespeed_password are not available immediately, as far as I can see.
3. When I connect via php to ssh, domainsetup.sh does not run (i figured its because i do not connect in interactive mode (no bash?)), which makes me worried that some other stuff does not get done as well?
4. Its spotty if things will work once I do step number 3 rom the list above (when I add ssl).
I'm using official docs for all my vhost manipulation: https://docs.litespeedtech.com/cloud/images/wordpress/#how-do-i-create-additional-virtual-hosts
If anyone can shed any light on whats going on and what I might be dong wrong, that would be awesome.