瀏覽代碼

Apache tweaking

Bob Mottram 11 年之前
父節點
當前提交
8bbc4b50b8
共有 1 個文件被更改,包括 11 次插入8 次删除
  1. 11
    8
      beaglebone.txt

+ 11
- 8
beaglebone.txt 查看文件

2064
 Search for MaxClients and replace the value with 6. As an example the settings should look something like this:
2064
 Search for MaxClients and replace the value with 6. As an example the settings should look something like this:
2065
 
2065
 
2066
 #+BEGIN_SRC: bash
2066
 #+BEGIN_SRC: bash
2067
+KeepAliveTimeout 2
2067
 Timeout 150
2068
 Timeout 150
2068
 
2069
 
2069
 <IfModule mpm_prefork_module>
2070
 <IfModule mpm_prefork_module>
2070
-    StartServers          3
2071
-    MinSpareServers       3
2072
-    MaxSpareServers       5
2073
-    MaxClients            6
2074
-    MaxRequestsPerChild   0
2071
+  StartServers           1
2072
+  MinSpareServers        1
2073
+  MaxSpareServers        5
2074
+  ServerLimit           16
2075
+  MaxClients            16
2076
+  MaxRequestsPerChild    0
2077
+  ListenBacklog        100
2075
 </IfModule>
2078
 </IfModule>
2076
 
2079
 
2077
 <IfModule mpm_worker_module>
2080
 <IfModule mpm_worker_module>
2080
     MaxSpareThreads      75
2083
     MaxSpareThreads      75
2081
     ThreadLimit          64
2084
     ThreadLimit          64
2082
     ThreadsPerChild      25
2085
     ThreadsPerChild      25
2083
-    MaxClients            6
2086
+    MaxClients           16
2084
     MaxRequestsPerChild   0
2087
     MaxRequestsPerChild   0
2085
 </IfModule>
2088
 </IfModule>
2086
 
2089
 
2090
     MaxSpareThreads      75
2093
     MaxSpareThreads      75
2091
     ThreadLimit          64
2094
     ThreadLimit          64
2092
     ThreadsPerChild      25
2095
     ThreadsPerChild      25
2093
-    MaxClients            6
2096
+    MaxClients           16
2094
     MaxRequestsPerChild   0
2097
     MaxRequestsPerChild   0
2095
 </IfModule>
2098
 </IfModule>
2096
 #+END_SRC
2099
 #+END_SRC
6544
 emacs /etc/apache2/sites-available/$HOSTNAME
6547
 emacs /etc/apache2/sites-available/$HOSTNAME
6545
 #+END_SRC
6548
 #+END_SRC
6546
 
6549
 
6547
-Add the following to the section which starts with
6550
+Add the following to the section which starts with *<VirtualHost *:443>*
6548
 
6551
 
6549
 #+BEGIN_SRC: bash
6552
 #+BEGIN_SRC: bash
6550
 	SSLCertificateChainFile /etc/ssl/chains/startssl-sub.class1.server.ca.pem
6553
 	SSLCertificateChainFile /etc/ssl/chains/startssl-sub.class1.server.ca.pem