|
@@ -1664,7 +1664,14 @@ ServerSignature Off
|
1664
|
1664
|
ServerTokens Prod
|
1665
|
1665
|
#+END_SRC
|
1666
|
1666
|
|
1667
|
|
-Then save and exit In the examples below replace /mydomainname.com/ with your own domain name.
|
|
1667
|
+Then save and exit. Install some extra security.
|
|
1668
|
+
|
|
1669
|
+#+BEGIN_SRC: bash
|
|
1670
|
+apt-get install libapache2-modsecurity
|
|
1671
|
+apt-get install libapache2-mod-evasive
|
|
1672
|
+#+END_SRC
|
|
1673
|
+
|
|
1674
|
+In the examples below replace /mydomainname.com/ with your own domain name.
|
1668
|
1675
|
|
1669
|
1676
|
#+BEGIN_SRC: bash
|
1670
|
1677
|
export HOSTNAME=mydomainname.com
|
|
@@ -1690,6 +1697,7 @@ The Apache configuration for the site should look something like the following.
|
1690
|
1697
|
AllowOverride All
|
1691
|
1698
|
Order allow,deny
|
1692
|
1699
|
allow from all
|
|
1700
|
+ LimitRequestBody 128000
|
1693
|
1701
|
</Directory>
|
1694
|
1702
|
|
1695
|
1703
|
# Don't serve .php~ or .php# files created by emacs
|
|
@@ -1714,6 +1722,7 @@ The Apache configuration for the site should look something like the following.
|
1714
|
1722
|
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
1715
|
1723
|
Order allow,deny
|
1716
|
1724
|
Allow from all
|
|
1725
|
+ LimitRequestBody 128000
|
1717
|
1726
|
</Directory>
|
1718
|
1727
|
|
1719
|
1728
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
@@ -1740,6 +1749,7 @@ The Apache configuration for the site should look something like the following.
|
1740
|
1749
|
AllowOverride All
|
1741
|
1750
|
Order allow,deny
|
1742
|
1751
|
allow from all
|
|
1752
|
+ LimitRequestBody 128000
|
1743
|
1753
|
</Directory>
|
1744
|
1754
|
|
1745
|
1755
|
# Don't serve .php~ or .php# files created by emacs
|
|
@@ -1764,6 +1774,7 @@ The Apache configuration for the site should look something like the following.
|
1764
|
1774
|
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
1765
|
1775
|
Order allow,deny
|
1766
|
1776
|
Allow from all
|
|
1777
|
+ LimitRequestBody 128000
|
1767
|
1778
|
</Directory>
|
1768
|
1779
|
|
1769
|
1780
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|