komodo9 Posted October 12, 2008 Share Posted October 12, 2008 Hi, I run a cluster of 6 apache servers that share a common httpd.conf (through nfs). The problem I'm facing is with the log files. I do not want each server to store the log file on their own hard drives because of space restrictions, and I instead require the log files to be on the NFS mount (located at /array/). All six servers are writing to the log files at the same time, causing spliced lines and nearly unreadable output. My question is regarding this line: CustomLog /array/log/httpd-access.log combined Is there any way to save the log file to a dynamic path, such as: CustomLog /array/log/__$LOCAL_HOST_NAME$__/httpd-access.log Or even better, does anyone have any ideas on how to keep a single log file for all servers, without splicing and mutilating the output, and without slowing down each server, waiting for locks on the file to release? I look forward to your help. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
komodo9 Posted October 13, 2008 Author Share Posted October 13, 2008 Anyone? I'd really appreciate any tips or advice. Thanks! Quote Link to comment Share on other sites More sharing options...
neogranas Posted October 13, 2008 Share Posted October 13, 2008 Possibly try to use virtual hosts directives? I'll admit I'm not the best with apache, but with my limited understanding I think it could work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.