Apache 設定
--バージョンを消す
httpd.conf
httpd.conf
ServerTokens OS
↓
ServerTokens Prod ServerTokensの種類と表示内容は、以下の通り。 | Full | Apache/2.2.3 (CentOS) DAV/2 PHP/5.1.6 mod_python/3.2.8 Python/2.4.3 mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 mod_perl/2.0.4 Perl/v5.8.8 Server at xx.xx.com Port 80 |
| Major | Apache/2 Server at xx.xx.com Port 80 |
| Min[imal] | Apache/2.2.3 Server at xx.xx.com Port 80 |
| Minor | Apache/2.2 Server at xx.xx.com Port 80 |
| OS | Apache/2.2.3 (CentOS) Server at xx.xx.com Port 80 |
| Prod[uctOnly] | Apache Server at xx.xx.com Port 80 |
--公開先を限定する場合 192.168.0.0のみ公開する場合は、以下の通り。 Options Indexes FollowSymLinks AllowOverride None Order deny,Allow
Deny from All
Allow from 192.168.0.0/24
コメント