Apache setup
Category: /knowledge /linuxTags: linux apache
Install
sudo aptitude install apache2-mpm-prefork apache2-utils \
libapache2-mod-wsgi libapache2-svn
a2enmod ssl alias proxy proxy_http mime
create a self-signed certificate
openssl genrsa -aes256 -out server.key 4096
# provide a phrase here for now, we will remove it later.
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
openssl rsa -in server.key -out server.key.insecure
mv server.key server.key.secure
mv server.key.insecure server.key
sudo mkdir /etc/apache2/ssl
sudo mv server.crt server.key /etc/apache2/ssl