| 
															
														 | 
														
															 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															1125
														 | 
														
															 iptables -A INPUT -p tcp --dport 22 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT 
														 | 
														
															1125
														 | 
														
															 iptables -A INPUT -p tcp --dport 22 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT 
														 | 
													
												
													
														| 
															1126
														 | 
														
															  
														 | 
														
															1126
														 | 
														
															  
														 | 
													
												
													
														| 
															1127
														 | 
														
															 # Limit web connections 
														 | 
														
															1127
														 | 
														
															 # Limit web connections 
														 | 
													
												
													
														| 
															1128
														 | 
														
															-iptables -A INPUT -p tcp --dport 80 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															1129
														 | 
														
															-iptables -A INPUT -p tcp --dport 443 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															1128
														 | 
														
															+iptables -A INPUT -p tcp --dport 80 -m limit --limit 30/minute --limit-burst 5 -j ACCEPT 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															1129
														 | 
														
															+iptables -A INPUT -p tcp --dport 443 -m limit --limit 30/minute --limit-burst 5 -j ACCEPT 
														 | 
													
												
													
														| 
															1130
														 | 
														
															  
														 | 
														
															1130
														 | 
														
															  
														 | 
													
												
													
														| 
															1131
														 | 
														
															 # Limit number of XMPP connections 
														 | 
														
															1131
														 | 
														
															 # Limit number of XMPP connections 
														 | 
													
												
													
														| 
															1132
														 | 
														
															 iptables -A INPUT -p tcp --match multiport --dports 5222:5223,5269,5280:5281 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT 
														 | 
														
															1132
														 | 
														
															 iptables -A INPUT -p tcp --match multiport --dports 5222:5223,5269,5280:5281 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT 
														 | 
													
												
											
												
													
														| 
															
														 | 
														
															 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															3995
														 | 
														
															 emacs /etc/apache2/sites-available/mydomainname.com 
														 | 
														
															3995
														 | 
														
															 emacs /etc/apache2/sites-available/mydomainname.com 
														 | 
													
												
													
														| 
															3996
														 | 
														
															 #+END_SRC 
														 | 
														
															3996
														 | 
														
															 #+END_SRC 
														 | 
													
												
													
														| 
															3997
														 | 
														
															  
														 | 
														
															3997
														 | 
														
															  
														 | 
													
												
													
														| 
															3998
														 | 
														
															-Within the section which begins with *<VirtualHost *:80>* change the following: 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															3998
														 | 
														
															+Replace the section which begins with *<VirtualHost *:80>* with the following: 
														 | 
													
												
													
														| 
															3999
														 | 
														
															  
														 | 
														
															3999
														 | 
														
															  
														 | 
													
												
													
														| 
															4000
														 | 
														
															 #+BEGIN_SRC: bash 
														 | 
														
															4000
														 | 
														
															 #+BEGIN_SRC: bash 
														 | 
													
												
													
														| 
															4001
														 | 
														
															-  <Directory /var/www/mydomainname.com/htdocs/> 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															4002
														 | 
														
															-    deny from all 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															4003
														 | 
														
															-  </Directory> 
														 | 
														
															
														 | 
														
															 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4001
														 | 
														
															+<VirtualHost *:80> 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4002
														 | 
														
															+	ServerAdmin myusername@mydomainname.com 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4003
														 | 
														
															+	ServerName myredmatrixdomainname.com 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4004
														 | 
														
															+ 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4005
														 | 
														
															+    RewriteEngine On 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4006
														 | 
														
															+    RewriteCond %{HTTPS} off 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4007
														 | 
														
															+    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 
														 | 
													
												
													
														| 
															
														 | 
														
															 
														 | 
														
															4008
														 | 
														
															+</VirtualHost> 
														 | 
													
												
													
														| 
															4004
														 | 
														
															 #+END_SRC 
														 | 
														
															4009
														 | 
														
															 #+END_SRC 
														 | 
													
												
													
														| 
															4005
														 | 
														
															  
														 | 
														
															4010
														 | 
														
															  
														 | 
													
												
													
														| 
															4006
														 | 
														
															 Save and exit, then restart the apache server. 
														 | 
														
															4011
														 | 
														
															 Save and exit, then restart the apache server. 
														 |