I've followed the instructions here.
The first step (setting up the virtual hosts) works; however as soon as I switch to the second step (the SSL part); both URLs show the default Apache text ("It works").
The contents of var/log/httpd-error.log shows:
apachectl -S:
Do I need to port forward 443?
The first step (setting up the virtual hosts) works; however as soon as I switch to the second step (the SSL part); both URLs show the default Apache text ("It works").
The contents of var/log/httpd-error.log shows:
Code:
[Mon Jan 24 16:53:54.739177 2022] [ssl:warn] [pid 4265] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jan 24 16:53:54.740525 2022] [mpm_prefork:notice] [pid 4265] AH00163: Apache/2.4.48 (FreeBSD) OpenSSL/1.1.1k-freebsd configured -- resuming normal operations
[Mon Jan 24 16:53:54.740539 2022] [core:notice] [pid 4265] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
apachectl -S:
Code:
VirtualHost configuration:
*:443 is a NameVirtualHost
default server www.example1.com (/usr/local/etc/apache24/extra/httpd-vhosts.conf:45)
port 443 namevhost www.example1.com (/usr/local/etc/apache24/extra/httpd-vhosts.conf:45)
alias example1.com
port 443 namevhost www.example2.com (/usr/local/etc/apache24/extra/httpd-vhosts.conf:57)
alias example2.com
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex default: dir="/var/run/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80
Do I need to port forward 443?