Setting up Apache for testing Jetty/eXist
Posted by mholmes on 11 Apr 2018 in R & D, Activity log, Documentation
In a previous post I went through in detail how to set up the virtual host for Apache and to configure the /etc/hosts file, but I didn't give much detail on Apache itself. I've just gone through the whole process again, and I'm now documenting that as an addendum:
Configure required apache modules:
sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod ssl
Generate a certificate for the server to use:
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/spud.key -out /etc/ssl/certs/spud.crt
Restart Apache:
sudo systemctl restart apache2
Of course the name and location of the cert must match the name and location specified in the virtual host file.