I'd like to prepend the vhost name in my ErrorLog and then pipe it into a program I wrote.
Is it possible to write Custom Error log format as it is with Access log?
I'd like to prepend the vhost name in my ErrorLog and then pipe it into a program I wrote.
Is it possible to write Custom Error log format as it is with Access log?
I don't know much about DNS administration, etc, however I know about best practices in application programming.
Currently, in my company, we have 6 servers respectively named :
That's fine.
However, the sysadmin asked us to handle those random endpoint in our application, it means, that we need to pick randomly a server from within this list.
It looks bad to me, because whenever we need to add a server, we need to edit our application (even if it's just a config file), but I think application should not be aware of such things, similarly to entity should not know about persisting server.
My though is to use a dns load balancing, one domain, pointing to different ip
One endpoint: mobile.domain.com
The sysadmin told me that's bad or something like that, but I'm convinced it's the best solution, more it'll allow later geolocalisation load balancing which is great. By the way, randomly pick a server from a list won't prevent the server to shutdown since random is, just not random, and doesn't look efficient for me.
Thank you for your feedback, if you have arguments pro & cons I can use : )
I'm not sure my question is clear, but here is a small explication:
I'm using apache mod_vhost_alias, which is great for me to create new domain easily (just create the according domain name folder) It is configured as is :
UseCanonicalName Off
VirtualDocumentRoot /var/www/%0/htdocs
However, I'd like to be able to automatically write log to /var/www/%0/logs
Is there any way to do this with such mod?
Thank you