Apache日志配置求助
现状:一服务器,同一个apache,包括多个应用:
php根应用 /
weblogic应用1 /app1
weblogic应用2 /app2
期望每个应用的日志可以分文件保存。不在是一个access_log,error_log。
谢谢!!
附之前的配置
<VirtualHost 192.168.1.2>
Documentroot "/usr/local/apache/htdocs"
ServerName 192.168.1.2
ServerAdmin webmaster@company.com
ErrorLog /usr/local/apache/logs/error_log
TransferLog /usr/local/apache/logs/access_log
<Location /app1>
ConnectTimeoutSecs 120
WebLogicHost 192.168.1.202
WebLogicPort 8402
</Location>
<Location /app2>
ConnectTimeoutSecs 120
WebLogicHost 192.168.1.202
WebLogicPort 8401
</Location>
</VirtualHost>