[[Web¥¢¥×¥ê]]
unix¥µ¡¼¥ÐÀßÄê¤Ç¤è¤¯»È¤ï¤ì¤ë¥Õ¥¡¥¤¥ë¤Î¥Õ¥©¥ë¥À°ÌÃ֤Ǥ¹¡£~
°ìÎã¤Ç¤¹¤Î¤Ç¤³¤ì°Ê³°¤Î¾ì½ê¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤¬¡¢»²¹Í¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
*apache¥í¥°
¼¡¤Î¾ì½ê¤ÇÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£
**½ÐÎÏÀè¥Õ¥©¥ë¥À
/usr/local/apache2/conf/extra/httpd-vhosts.conf~
ÀßÄêÎã
<VirtualHost *:80>
DocumentRoot /app/content/site/foo.com/apps_web/frontend
ServerName foo.com
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 Request_URI "NULL\.printer" no_log
SetEnvIf Request_URI "mem_bin" no_log
SetEnvIf Request_URI "vti_bin" no_log
SetEnvIf Request_URI "MSADC" no_log
SetEnvIf Request_URI "\.(css)|(ico)|(gif)|(jpeg)|(jpg)|(png)$" no_log
SetEnvIf Request_URI "too1s" no_log
ErrorLog /var/logs.www/foo.com/http/error_log
CustomLog /var/logs.www/foo.com/http/access_log combined env=!no_log
CustomLog "|/usr/local/apache2/bin/rotatelogs /app/content/site/foo.com/logs/http/access.log.%Y-%m-%d.csv 86400 540" custlog env=!no_log
AddType video/3gpp 3gp
AddType application/java .jigmv
AddType application/java-archive .jar
AddType application/xhtml+xml .xhtml
php_value default_charset "Shift_JIS"
php_value mbstring.internal_encoding "SJIS-win"
php_value mbstring.http_output "SJIS-win"
# php_value mbstring.http_input "auto"
php_value mbstring.http_input "SJIS-win,EUC-JP,UTF-8"
php_value mbstring.substitute_character "none"
php_value mbstring.script_encoding "SJIS-win"
<Directory "/app/content/site/foo.com/apps_web/frontend">
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
php_value include_path ".:/usr/local/lib/php/PEAR:/usr/local/lib/php:/usr/local/lib/php/Smarty:/app/content/site/foo.com/conf"
</Directory>
</VirtualHost>
**½ÐÎÏ¥Õ¥©¡¼¥Þ¥Ã¥È
/usr/local/apache2/conf/httpd.conf~
ÀßÄêÎã
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
#ErrorLog "logs/error_log"
ErrorLog "/app/logs/APACHE/error_log"
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "\"%h\",\"%{%Y-%m-%d %H:%M:%S}t\",\"%>s\",\"%B\",\"%T\",\"%U\",\"%q\",\"%{member}n\",\"%{uid}n\",\"%{User-Agent}i\",\"%{Referer}i\"" custlog
SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
SetEnvIf Request_URI "\.(css)|(ico)|(gif)|(jpeg)|(jpg)|(png)$" no_log
SetEnvIf Request_URI "too1s" no_log
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
# CustomLog "logs/access_log" common
CustomLog "/app/logs/APACHE/access_log" common env=!no_log
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog "logs/access_log" combined
</IfModule>