現在位置: Top/CentOSによるサーバー構築/httpd.conf

ServerTokens Prod

ServerRoot "/etc/httpd"

PidFile run/httpd.pid

Timeout 120

KeepAlive Off

MaxKeepAliveRequests 100

KeepAliveTimeout 15

Listen 80

Include conf.d/*.conf

User apache
Group apache

ServerAdmin root@localhost

ServerName hkd.gr.jp:80

UseCanonicalName Off

DocumentRoot "/home/www/"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/home/www/">

   Options Includes ExecCGI FollowSymLinks

   AllowOverride All

    Order allow,deny
    Allow from all

</Directory>



DirectoryIndex index.html index.htm

HostnameLookups Off

ErrorLog logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

SetEnvIf Request_URI "default\.ida" no_log
SetEnvIf Request_URI "cmd\.exe" no_log
SetEnvIf Request_URI "root\.exe" no_log
SetEnvIf Request_URI "Admin\.dll" no_log
SetEnvIf Request_URI "NULL\.IDA" no_log
SetEnvIf Remote_Addr 192.168.1 no_log
CustomLog logs/access_log combined env=!no_log

ServerSignature Off

Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

AddHandler cgi-script .cgi .pl