Added configuration of Elasticsearch and fixes for Apache