linux:linux-apache2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:linux-apache2 [09/01/2021 23:28] – created - external edit 127.0.0.1 | linux:linux-apache2 [12/06/2025 22:06] (current) – [Hide server info] andrew | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux Apache2 ====== | ====== Linux Apache2 ====== | ||
+ | |||
+ | |||
+ | ===== Hide server info ===== | ||
+ | |||
+ | |||
+ | in httpd.comf: | ||
+ | < | ||
+ | # don't show server tokens | ||
+ | ServerTokens Prod | ||
+ | |||
+ | ServerSignature Off | ||
+ | </ | ||
+ | |||
+ | This shows for the header info:- | ||
+ | < | ||
+ | % curl --head www.rainsbrook.co.uk | ||
+ | HTTP/1.1 200 OK | ||
+ | Date: Thu, 12 Jun 2025 21:57:11 GMT | ||
+ | Server: Apache | ||
+ | Last-Modified: | ||
+ | ETag: " | ||
+ | Accept-Ranges: | ||
+ | Content-Length: | ||
+ | Vary: Accept-Encoding | ||
+ | Content-Type: | ||
+ | </ | ||
+ | |||
===== mod-rewrite test ===== | ===== mod-rewrite test ===== |
linux/linux-apache2.1610234924.txt.gz · Last modified: by 127.0.0.1