沒有很難, 因為之前弄了 Letsencrypt 就想加一下 HTTP2, 這應該也很成熟了
Read more »
Tag Archives: apache
[Gentoo] 替 Apache 加上 http2 支援
[Gentoo] Letsencrypt
大家都知道 Let’s Encrypt 最近提供了三個月的免費 SSL 證書, 加上 Google 要調高 HTTPS 的網站權重.
雖然本小站人少流量少, 不過還是不免俗的升級一下 HTTPS.
Gentoo Apache 2.4.3 升級後的怪問題.
如果出現
“Invalid command ‘User’, perhaps misspelled or defined by a module not included in the server configuration” ..
或是
“Invalid command ‘Require’, perhaps misspelled or defined by a module not included in the server configuration” ..
記得在 /etc/make.conf 內的 APACHE2_MODULES= 加上
[TEXT]
unixd access_compat authn_alias authn_core authz_core socache_shmcb
[/TEXT]
P.S 我一次全加了, 免得麻煩.
apache 網站的說明是說 Require 是用到 access_compat , 實際上還是要將 authz_core 和 authn_core 加入
如果網站有 access denied 的狀況, 要將設定稍改一下
[TEXT]
# Order allow,deny
# Allow from all
Require all granted
[/TEXT]
舊的 Order 和 Allow 改用 Require command .
大概是這樣.
[Gentoo] Apache 2.2 升級到 Apache 2.4 的問題.
除了要在 “/etc/portage/package.unmask” 加上
[TEXT]
www-servers/apache
app-admin/apache-tools
[/TEXT]
以便升級以外..
Read more »
近期留言