差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 | |||
apache [2017/02/19 19:14] jz |
apache [2017/02/28 00:32] (目前版本) jz |
||
---|---|---|---|
行 1: | 行 1: | ||
====== Apache ====== | ====== Apache ====== | ||
+ | |||
+ | ===== Hide server info ===== | ||
+ | <code apache> | ||
+ | Header unset Server | ||
+ | |||
+ | ServerSignature Off | ||
+ | ServerTokens Prod | ||
+ | </code> | ||
===== Redirect ===== | ===== Redirect ===== | ||
行 61: | 行 69: | ||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | ||
</code> | </code> | ||
+ | |||
+ | ref: | ||
+ | |||
+ | http://unix.stackexchange.com/questions/124137/change-apache-httpd-server-http-header | ||
+ | |||
+ | https://donjajo.com/modify-apache-servertokens-custom-value-using-mod_security-module/ |