Apache http server provides a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards
Insights uses Apache httpd server to securely access Insights User Interface, Grafana, Neo4j, RabbitMq, and Webhook.
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||
---|---|---|---|---|---|
| |||||
Steps for httpd configuration in RHEL Step 1: As httpd packages are already present in the server, install using the following commands
Step 2: Make change in the server-confing.json (location: /usr/INSIGHTS_HOME/.InSights ) grafanaEndpoint "grafanaEndpoint": "http://ip:3000" to "grafanaEndpoint" : "http://ip/grafana" Step 3: Change grafana host in the uiConfig.json file in the location: /opt/apache-tomcat-8.5.27/webapps/app/config "grafanaHost": "http://ip:3000", to "grafanaHost": "http://ip/grafana", Change Sevicehost in the uiConfig.json file in the location: /opt/apache-tomcat-8.5.27/webapps/app/config "serviceHost": "ip:8080", to "serviceHost": "ip", Step 4: create a file file name custom.ini in the location /opt/grafana/conf add the following contents
Step 5: Restart Grafana Step 6: Restart Tomcat |
Expand | |||||
---|---|---|---|---|---|
| |||||
Install Apache2 httpd Step 1: sudo yum install httpd Step 2: sudo systemctl enable httpd.service Install Mod SSL Step 3: sudo yum install mod_ssl Create a New Certificate Step 4: sudo mkdir /etc/ssl/private Step 5: sudo chmod 700 /etc/ssl/private Step 6: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt Fill out the prompts appropriately. The most important line is the one that requests the The full list of prompts will look something like this:
Both of the files you created will be placed in the appropriate subdirectories of the While we are using OpenSSL, we should also create a strong Diffie-Hellman group, which is used in negotiating Perfect Forward Secrecy with clients. We can do this by typing: Step 7: sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048 This may take a few minutes, but when it’s done you will have a strong DH group at Since the version of Apache that ships with CentOS 7 does not include the Step 8: cat /etc/ssl/certs/dhparam.pem | sudo tee -a /etc/ssl/certs/apache-selfsigned.crt Set Up the Certificate Step 9: sudo vi /etc/httpd/conf.d/ssl.conf Adjusting the VirtualHost DirectivesFirst, uncomment the Next, uncomment the File Contents: /etc/httpd/conf.d/ssl.conf
Next, find the File content : /etc/httpd/conf.d/ssl.conf
Find the File contents: /etc/httpd/conf.d/ssl.conf
We’re now done with the changes within the actual Setting Up Secure SSL ParametersThe choice of which config you use will depend largely on what you need to support. They both will provide great security. For our purposes, we can copy the provided settings in their entirety. We will just make two small changes. The other change we will make is to comment out the Paste in the settings from the site AFTER the end of the File Contents: /etc/httpd/conf.d/ssl.conf
When you are finished making these changes, you can save and close the file.
First, check your configuration file for syntax errors by typing: Step 11: sudo apachectl configtest As long as the output ends with Output
Step 13: Make change in the server-confing.json (location: /usr/INSIGHTS_HOME/.InSights ) grafanaEndpoint "grafanaEndpoint": "http://ip:3000" to "grafanaEndpoint" : "https://ip/grafana" Step 14: Change grafana host in the uiConfig.json file in the location: /opt/apache-tomcat-8.5.27/webapps/app/config "grafanaHost": "http://ip:3000", to "grafanaHost": "https://ip/grafana", Change Sevicehost in the uiConfig.json file in the location: /opt/apache-tomcat-8.5.27/webapps/app/config "serviceHost": "ip:8080", to "serviceHost": "ip", Step 15: create a file file name custom.ini in the location /opt/grafana/conf add the following contents [server] Step 5: Restart Grafana Step 6: Restart Tomcat |
Expand | |||||
---|---|---|---|---|---|
| |||||
Prerequisites: OS: Windows
Step 1:
Step 2:
Step 3:
mkdir ApacheWebPages Step 4: Take backup and Delete file contents httpd.conf in the folder location C:\Apache24\conf copy file contents from httpd.conf and paste in the file. Step 5: Take backup and Delete file contents httpd-vhosts.conf in the folder location C:\Apache24\conf\extra copy file contents from httpd-vhosts.conf Step 6:
Step 7: Create a file custom.ini in the grafana conf folder /grafana/conf/ update the file with content
Step 8: Make change in the server-confing.json (location: INSIGHTS_HOME/.InSights ) grafanaEndpoint "grafanaEndpoint": "http://ip:3000" to "grafanaEndpoint" : "http://ip/grafana" Step 9: Change grafana host in the uiConfig.json file in the location: /apache-tomcat-8.5.27/webapps/app/config "grafanaHost": "http://ip:3000", to "grafanaHost": "http://ip/grafana", Change Sevicehost in the uiConfig.json file in the location: apache-tomcat-8.5.27/webapps/app/config "serviceHost": "ip:8080", to "serviceHost": "ip", Step 10: Restart Grafana Step 11: Restart Tomcat Step 12: Check the following url in browser for respective tools http://localhost/appinsights/ -> Insights |
Expand | |||||
---|---|---|---|---|---|
| |||||
Prerequisites: OS: Windows
Step 1:
Step 2:
Step 3:
Step 4: Crete open ssl certificate
Fill out the prompts appropriately. The most important line is the one that requests the The full list of prompts will look something like this:
copy file contents from httpd.conf and paste in the file. Step 6: Take backup and Delete file contents httpd-vhosts.conf in the folder location C:\Apache24\conf\extra copy file contents from httpd-vhosts.conf Step 7: Create a file custom.ini in the grafana conf folder /grafana/conf/ update the file with content
Step 8: Make change in the server-confing.json (location: INSIGHTS_HOME/.InSights ) grafanaEndpoint "grafanaEndpoint": "http://ip:3000" to "grafanaEndpoint" : "https://ip/grafana" Step 9: Change grafana host in the uiConfig.json file in the location: /apache-tomcat-8.5.27/webapps/app/config "grafanaHost": "http://ip:3000", to "grafanaHost": "https://ip/grafana", Change Sevicehost in the uiConfig.json file in the location: apache-tomcat-8.5.27/webapps/app/config "serviceHost": "ip:8080", to "serviceHost": "ip", Step 10: Restart Grafana Step 11: Restart Tomcat Step 12: Check the following url in browser for respective tools https://localhost/appinsights/ -> Insights |
...