Open Apache config file:
sudo ee /usr/local/etc/apache24/httpd.conf
Ensure the following is uncommented, then save and exit the file (remove #
if present at the start of the line):
First navigate to Apache in the ports collection, then install the port at the given location and clean (note Apache version here is 24, this may change in future). For the configuration, selecting the mpm_event_module
(async) configuration to compile down with. This handels concurrency better then mpm_worker_module
by using a single listener thread, but is also multithreaded (where as mpm_prefork_module
is not multithread and instead uses processes). Note that mpm_event_module
will change the PHP module used:
cd /usr/ports/www/apache24 && sudo make config-recursive install distclean
Configuration
Essential:
Case specific:
To try:
Save docker images to file:
docker save -o destination/file.tar docker_image/name
Load docker images from file:
docker load -i destination/file.tar
Requires the passcode for the .pfx file prior.
Extract .key file from .pfx file (will need to set a password here too):
openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]
Extract .crt file from .pfx file:
openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]
Run this is the terminal:
openssl req -x509 -out localhost.crt -keyout localhost.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
Reference: