Hi everyone. I've looked everywhere for help and I can't find it, so I'm here. I've been at this for literally hours. I cannot get my static IP to resolve in a browser and when I configure DNS, whether with a simple A and AAAA record or using AWS nameservers, it will not work at all.
I've created and recreated four instance of Bitnami Wordpress, Ubuntu 22 several times, and also debian. I've read every guide I can find.
- My cloud firewall has 80, 443, and 22 open from anywhere.
- My instance has UFW enabled on the same ports.
- My domain is routed to my static ip which is attached to my instance. (I only have one).
- I've checked DNS progagation at https://www.whatsmydns.net/ (Both A and AAA are okay)
- dig responds with the correct A record.
- Ping 18.133.92.34 returns properly
- curl -I 18.133.92.34 returns:
HTTP/1.1 308 Permanent Redirect Connection: close Location: https://18.133.92.34/ Server: Caddy Date: Sun, 07 Jan 2024 16:38:48 GMT
ip a returns:
ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 06:41:60:b7:b7:2d brd ff:ff:ff:ff:ff:ff altname enp0s5 inet 172.26.0.93/20 metric 100 brd 172.26.15.255 scope global dynamic ens5 valid_lft 1878sec preferred_lft 1878sec inet6 2a05:d01c:325:2400:4c77:59a3:f54e:fd3f/128 scope global dynamic noprefixroute valid_lft 413sec preferred_lft 103sec inet6 fe80::441:60ff:feb7:b72d/64 scope link valid_lft forever preferred_lft forever
(I think that's normal.)
I have done everything that I know of. I cannot get DNS to work at all. Something is blocking my browser, even in incognito mode or with Firefox instead of Chrome.
Lastly, here's my Caddyfile (domain name sensored):
`domain_name.com {
# Set this path to your site's directory.
root * /var/www/html
# Enable the static file server.
file_server
# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
}
Refer to the Caddy docs for more information:
There is a simple index.html file located in /var/www/html and all permissions are like Wordpress: www-data, 755, 644. (I've tried caddy:caddy too. There's something wrong with the internal dns....)
Can you help me figure this out? I'm stumped.
(Edit: Oh, and I can't deply ssl under any circumstances. I've also changed Chromes security to accept non-tls connections...)