apache:harden_apache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apache:harden_apache [2020/07/15 09:30] – external edit 127.0.0.1 | apache:harden_apache [2023/07/17 11:20] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache - Harden Apache ====== | ====== Apache - Harden Apache ====== | ||
- | ===== Hide the Apache version | + | [[Apache: |
- | Visit your web server in Firefox. | + | [[Apache: |
- | If you check the HTTP response headers in Firebug, it will show the Apache | + | [[Apache:Harden Apache: |
- | To hide this information from browsers, you will need to make some changes in Apache's main configuration file. | + | [[Apache:Harden Apache: |
- | You can do this by editing the httpd.conf file: | + | [[Apache:Harden Apache:Use .htaccess to hard-block spiders and crawlers|Use .htaccess to hard-block spiders and crawlers]] |
- | <code bash> | + | ---- |
- | sudo vi / | + | |
- | </ | + | |
- | Add the following line at the end of file: | + | Chroot |
- | + | ||
- | <file apache / | + | |
- | ServerSignature Off | + | |
- | ServerTokens Prod | + | |
- | </ | + | |
- | + | ||
- | Save the file and restart the Apache service to reflect these changes: | + | |
- | + | ||
- | <code bash> | + | |
- | sudo apachectl restart | + | |
- | </ | + | |
- | + | ||
- | Now, open Firefox and access your web server. | + | |
+ | ---- | ||
+ | [[Apache: |
apache/harden_apache.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1