From 49de401df58a57601c27d584e71fc23b6b72d324 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Apr 2014 07:41:02 +0100 Subject: [PATCH] More tidying --- beaglebone.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/beaglebone.txt b/beaglebone.txt index f2d52aee..378b6366 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -1125,8 +1125,8 @@ iptables -A INPUT -p udp --match multiport --dports 465,22,5222,5223,5269,5280,5 iptables -A INPUT -p tcp --dport 22 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT # Limit web connections -iptables -A INPUT -p tcp --dport 80 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT -iptables -A INPUT -p tcp --dport 443 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT +iptables -A INPUT -p tcp --dport 80 -m limit --limit 30/minute --limit-burst 5 -j ACCEPT +iptables -A INPUT -p tcp --dport 443 -m limit --limit 30/minute --limit-burst 5 -j ACCEPT # Limit number of XMPP connections iptables -A INPUT -p tcp --match multiport --dports 5222:5223,5269,5280:5281 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT @@ -3995,12 +3995,17 @@ Edit your Apache configuration and disable the port 80 (HTTP) version of the sit emacs /etc/apache2/sites-available/mydomainname.com #+END_SRC -Within the section which begins with ** change the following: +Replace the section which begins with ** with the following: #+BEGIN_SRC: bash - - deny from all - + + ServerAdmin myusername@mydomainname.com + ServerName myredmatrixdomainname.com + + RewriteEngine On + RewriteCond %{HTTPS} off + RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} + #+END_SRC Save and exit, then restart the apache server.