|
|
Apache性能調整以及SSL關鍵路徑
Kloxo 與Kloxo-mr 使用最大的差別就是Kloxo-mr的Apache性能降低 但是,httod.conf的設定是經過簡化的 幾經檢測,發現httod.conf的很多原始設定被轉移到/etc/httpd/conf.d/~lxcenter.conf裡面。 要修改KeepAlive、MaxSpareServers、MaxRequestsPerChild,需要打開這個檔案。 nano /etc/httpd/conf.d/~lxcenter.conf 把以下內容加到prefork.c(或MPM.c)設定規則裡面 (檢測prefork.c或MPM.c版本,請用httpd -l[L的小寫]) <IfModule prefork.c>
重啟Apache -> service httpd restartStartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> Kloxo-mr把每一個網址的SSL設置檔獨立為一個檔案,所以不能只修改/etc/httpd/conf.d/裡面的ssl.conf檔案。 必須在Kloxo-mr獨有的路徑裡面去設定。 經過一個月的奮戰與除錯,終於搞定了問題。 原來,設定個別網址的SSL關鍵檔在這裡 /home/apache/conf/domains/ SSLCertificateFile /home/admin/dir/ssl/theServer.crt (用指令或工具產生的CSR) SSLCertificateKeyFile /home/admin/dir/ssl/the.key (產生CSR時附帶產生的私鑰) SSLCertificateChainFile /home/admin/dir/ssl/theCACertificate.crt (第三方購買的中繼認證) 原文 SSLCertificateFile /[path]/[server certificate file] SSLCertificateKeyFile /[path]/[private key file] SSLCertificateChainFile /[path]/[intermediate certificate file] 更改後要記得 service httpd restart |
|
104休閒信箱 2.3.0 © 104mm.com 2001 - 2021. | 您尚未登錄 |