I have a question regarding the openlitespeed wordpress droplet. I am planning to use it for an api. ie: https://api.mysite.com
I got this far:
BUT
When I visit the subdomain in the browser, the website is displayed but not under the desired url. Instead, it is forwarded to the naked IP address at which point the installed certificate fails. The cert is issued for the subdomain and not the ip address.
How can I keep the subdomain in the url bar?
Thank You
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Ooops! The wordpress install had the raw ip set in the site_home and site_url fields. Everything was working as intended but wordpress was redirecting back to the ip.
You probably haven’t mapped the api virtual hosts + domain to the listener.
https://docs.litespeedtech.com/cloud/images/wordpress/#step-2-add-domain-to-listener
Let us know if it works or not.
Best, Eric
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.