VirtualHost configuration:
*:443 is a NameVirtualHost
default server ip-172-26-10-245.eu-west-2.compute.internal (/etc/apache2/sites-enabled/default-ssl.conf:2)
port 443 namevhost ip-172-26-10-245.eu-west-2.compute.internal (/etc/apache2/sites-enabled/default-ssl.conf:2)
port 443 namevhost modahairsalon.co.uk (/etc/apache2/sites-enabled/moda-hair-le-ssl.conf:2)
alias www.modahairsalon.co.uk
*:80 modahairsalon.co.uk (/etc/apache2/sites-enabled/moda-hair.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
certbot 1.27.0
on
apache2
Running on:
Ubuntu 20.04 LTS
Connected to serv via SSH
certbot 1.27.0
not only that but my apache2 is not respecting my server name or server alias. I have connected via telnet to 13.41.152.31 on both port 80 and port 443 and both are open, so I believe it is not a firewall issue. When I navigate directly to 13.41.152.31 the website loads perfectly so apache2 is doing some sort of job.
I have been racking my brains for days to no avail.
Okay I apologise for not providing the entire context. It’s running on a single lightsail instance, which I set up. As far as I can see it’s not on a VPC, and the only firewall rules I’ve added are for openSSH, and Apache, and that’s on the server itself. I can’t see anywhere that says AWS starts a VPC for single lightsail instances.
turns out only ports 22 and 80 were allowed…thank you! Silly question, but I have a rewrite engine rule in place that directs all http to https, I’m guessing this is why it’s ONLY been accessible by direct IP?