以CentOS為例
要使用HTTP2 Apache版本必須為2.4.17之後的版本
建議至少使用2.4.38以後的版本
且必須使用SSL憑證的https
首先若Apacha版本為較舊的版本
我們先手動升級
cd /etc/yum.repos.d
wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
yum install httpd
service httpd restart
接著在Apache設定檔中加入 Protocols h2 http/1.1
<VirtualHost *:443>
Protocols h2 http/1.1
ServerName www.weiyuan.com.tw
略.....
</VirtualHost>
接著重新啟動apache
service httpd restart
最後可以線上測試HTTP2是否正常
WAMP出現error msvcr120.dll msvcr110.dll錯誤
Composer 是一個套件管理工具,用途是在專案中可以透過簡易的指令將所使用的套件或程式碼庫安裝於專案內。
php顯示錯誤訊息Class 'ZipArchive' not found解決方式
在伺服器上的資料夾權限設定,經常有許多人會將權限設定到777 這是風險非常大的一件事情!那該如何設定呢?
Slow HTTP Denial of Service Attack 是以非常緩慢的速度進行http請求,霸佔伺服器服務,達到癱瘓伺服器的目的,解決方式即是設定 Timeout