-
quick tutorial
-
# Enable ssl
-
a2enmod ssl
-
# Edit /etc/apache2/ports.conf and add “Listen 443”
-
# Generate certs: use your domain as Common Name or *.domain.tld for multiple domains
-
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -out /etc/apache2/server.crt -keyout /etc/apache2/server.key
-
# In the virtualhost, use the following code:
-
<VirtualHost 192.168.0.1:443>
-
SSLEngine On
-
SSLCertificateFile /etc/apache2/server.crt
-
SSLCertificateKeyFile /etc/apache2/server.key
-
</VirtualHost>
-
# Reload apache2
-
/etc/init.d/apache2 reload
-
-
-
a2ensite mysite
-
# ‘mysite’ refers to /etc/apache2/sites-available/mysite
-
# This creates the symbolic link between configuration files in /etc/apache2/sites-available and /etc/apache2/sites-enabled
-
a2dissite mysite # disable the site
“apache2” related tags
spirit’s tags
access apache apache2 apt arguments auditd auth awk backup backups bandwidth bash bridge cache cd charset cisco commands conversion cron css date debian debug default diff directories directory distance dns dom du eth ethernet excel exclude files find firefox flash forms function hacks headers history hosts htaccess html http https ie ifconfig images input ip javascript jobs kill latitude linux log logging longitude mac mail maps merge monitoring mysql network nginx openssl packages performance performances perl php red hat regex restore root route rpm script security server shell ssh ssl svn switch syslog tail trunk unix virtualhost vlan vmware windows yum
-