Posts

Showing posts from August, 2024

vim /etc/apache2/sites-enabled/default-ssl.conf

Image
  Apache base virtual host file, default ssl conf file. Vim  /etc/apache2/sites-enabled/default-ssl.conf : <IfModule mod_ssl.c >     <VirtualHost  xxx.xx.xxx.xxx:443 >         ServerName jobsite.com         ServerAlias *.jobsite.com         LogLevel debug         ErrorLog /var/log/apache2/jobsite_com_error.log         CustomLog /var/log/apache2/jobsite_com_custom.log combined         SSLEngine on         SSLCertificateFile /etc/ssl/jobsite_com/jobsite_com.crt         SSLCertificateKeyFile /etc/ssl/jobsite_com/jobsite_com.key         # SSLCertificateChainFile /etc/ssl/jobsite_com/intermediate.crt         RewriteEngine On         RewriteCond %{HTTPS} off [OR]         RewriteCond %{HTTP_HOST} ^jobsite\.com [NC,OR]         RewriteCond %{SERVER_NAME} xxx.xx.xxx.xxx         RewriteRule /(.*) https://www.jobsite.com/$1 [R=301,L]         RewriteCond %{HTTPS} off         RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]         LimitRequestBody 31457

Configuring a Self-Managed Elastic Cluster on Linux – Single and multiple nodes

Image
Elasticsearch, renowned for its search engine capabilities, boasts powerful security features for data protection. This comprehensive guide walks you through the process of setting up a Multi-Node ElasticSearch cluster with custom configurations on Linux. Starting from scratch, stack limits, memory map configurations, and Elasticsearch deployment. The guide concludes with verification using CURL. Elasticsearch, renowned for its power and scalability as a search engine, offers robust security features to safeguard your data. We are set to establish a Multi Node ES cluster with tailored configurations on linux machines. This blog post serves as a step-by-step guide, walking you through the process of configuring an Elastic cluster with everything from scratch using the settings outlined below. On Linux systems, persistent limits can be set for a particular user by editing the  /etc/security/limits.conf  file. To set the maximum number of open files for the  elasticsearch  user to 65,535,