User Tools

Site Tools


linux:linux-apache2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:linux-apache2 [09/01/2021 23:28] – created - external edit 127.0.0.1linux: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:-
 +<code>
 +# don't show server tokens
 +ServerTokens Prod
 +
 +ServerSignature Off
 +</code>
 +
 +This shows for the header info:-
 +<code>
 +% curl --head www.rainsbrook.co.uk
 +HTTP/1.1 200 OK
 +Date: Thu, 12 Jun 2025 21:57:11 GMT
 +Server: Apache
 +Last-Modified: Wed, 12 Oct 2022 00:26:03 GMT
 +ETag: "36c-5eacb70120add"
 +Accept-Ranges: bytes
 +Content-Length: 876
 +Vary: Accept-Encoding
 +Content-Type: text/html; charset=UTF-8
 +</code>
 +
  
 ===== mod-rewrite test ===== ===== mod-rewrite test =====
linux/linux-apache2.1610234924.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki