maybe i could do this with aliases?
Hmm, no, because the ErrorLog directive can be set only once for each domain. The easiest solution is to create subdomains for each website and configure indipendent directives.
The CustomLog is used to trace the requests to the server, so it's the access log, you could use an environment variable to trace each website and assign indipendent custom logs, check:
- http://httpd.apache.org/docs/current/mod/mod_log_config.html#customlog
- http://httpd.apache.org/docs/current/env.html
- http://httpd.apache.org/docs/current/mod/mod_env.html
- http://httpd.apache.org/docs/current/mod/directive-dict.html#Context
Not tested, but something like this in server or virtual context, should work:
<Directory site1>
SetEnv subwebsite1
</Directory>
<Directory site2>
SetEnv subwebsite2
</Directory>
CustomLog ${APACHE_LOG_DIR}/site1.log combined env=subwebsite1
CustomLog ${APACHE_LOG_DIR}/site2.log combined env=subwebsite2