apache php 安全设置

ServerSignatureDirective

Description:

Configuresthefooteronserver-generateddocuments

Syntax:

ServerSignatureOn|Off|EMail

Default:

ServerSignatureOff

Context:

serverconfig,virtualhost,directory,.htaccess

Override:

All

Status:

Core

Module:

core

ServerTokensDirective

Description:

ConfigurestheServerHTTPresponseheader

Syntax:

ServerTokensMajor|Minor|Min[imal]|Prod[uctOnly]|OS|Full

Default:

ServerTokensFull

Context:

serverconfig

Status:

Core

Module:

core

;DecideswhetherPHPmayexposethefactthatitisinstalledontheserver

;(e.g.byaddingitssignaturetotheWebserverheader).Itisnosecurity

;threatinanyway,butitmakesitpossibletodeterminewhetheryouusePHP

;onyourserverornot.

;http://php.net/expose-php

expose_php=Off

相关推荐