Hi @jota,
Thanks for the reply. The reason that subdomain was not properly configured was that I rolled back all the setup after I post this in here.
For the first part, I've put httpd-prefix.conf
back to where it was.
I am pretty new to the server configuration, please bear with me if I ask something dumb here.
I am using CloudFlare, does that mean my DNS provider is CloudFlare for now? I just add an A record in CloudFlare for staging.angel-point.life, making it point to my Lightsail IP, then from https://www.whatsmydns.net/#A/staging.angel-point.life, it seems like this staging.angel-point.life is now configured properly, but when I visit the site, the browser still shows me an IP address could not be found
error, with an error code DNS_PROBE_FINISHED_NXDOMAIN
.
When visiting main domain angel-point.life, it also redirects me to the subdomain staging.angel-point.life
I also found that I can configure DNS in the Lightsail instance as well, should I add the A record for staging there and point it to my static IP through Lightsail or should I just need to add A record for the subdomain in CloudFlare?
Thanks
EDIT:
I think I am just not patient enough to wait for the propagation, now the site is working at the subdomain, but the main domain angel-point.life is redirecting traffic to the subdomain.
Here is my httpd-vhosts.conf
file content:
<VirtualHost *:80>
ServerName staging.angel-point.life
ServerAlias www.staging.angel-point.life
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
Include "/opt/bitnami/apps/wordpress/conf/httpd-app.conf"
</VirtualHost>
Should I add one more section for the main domain in this file?
Thanks