Differences between version 26 and predecessor to the previous major change of ApacheNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 26 | Last edited on Monday, November 28, 2005 4:02:53 pm | by CraigBox | Revert |
Older page: | version 25 | Last edited on Wednesday, July 27, 2005 5:19:16 pm | by JohnMcPherson | Revert |
@@ -26,8 +26,42 @@
<verbatim>
iptables --insert OUTPUT --match owner --uid-owner www-data --protocol tcp --syn --jump REJECT
iptables --insert OUTPUT --match owner --uid-owner www-data --protocol tcp --syn --jump LOG
</verbatim>
+
+!!Two minute Apache 2 self signed SSL configuration
+
+Can't get much better than this! From [the Ubuntu forums|http://ubuntuforums.org/showthread.php?p=19832]:
+
+<pre>
+apt-get install apache2
+apache2-ssl-certificate
+</pre>
+(and answer the questions)
+
+Enable ssl: =a2enmod ssl= <br>
+Configure a vhost:
+<pre>
+cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
+a2ensite ssl
+</pre>
+
+"/etc/apache2/sites-enabled/ssl" should look like this:
+
+<verbatim>
+NameVirtualHost *:443
+<VirtualHost *:443>
+(... configure the directories too...)
+</verbatim>
+
+In /etc/apache2/ports.conf, add =Listen 443= <br>
+In the middle of /etc/apache2/sites-available/ssl file, insert these two lines:
+<pre>
+SSLEngine On
+SSLCertificateFile /etc/apache2/ssl/apache.pem
+</pre>
+
+=/etc/init.d/apache2 force-reload= and you're away.
!!! Extra information in directory listings
You can have additional information displayed at the top and bottom of a <tt>mod_autoindex</tt> directory listing by putting the text in a file called <tt>HEADER</tt> and <tt>README</tt>, respectively. Either file can any have FileExtension (or none). To enable this feature, you will need <tt>~MultiViews on</tt> to be in effect for that request.