Tag: apache

Install Apache Tomcat 9 Complete with Updated Scripts

In this exercise, Tomcat 9 will be installed with OpenJDK 8 using a self-signed certificate using the http2.Http2Protocol protocol.  I’ve updated and simplified the script since my last attempt at a similar Tomcat 9 installation.  I have also added SELinux context, log rotation, and speed! ######################################################################################## # Apache Tomcat 9 ######################################################################################## yum install wget firewalld java-1.8.0-openjdk-devel policycoreutils-python epel-release -y yum…

Read More »

Apache Tomcat 9 – SSL/TLS Configuration HOW-TO

In this exercise, Tomcat 9 will be installed with OpenJDK 8 using a self-signed certificate in a PKS12 keystore on a clean CentOS 7 Linux server using the Http11NioProtocol protocol.  These are the steps. ######################################################################################## # Apache Tomcat 9 ######################################################################################## yum install wget vim net-tools firewalld unzip -y yum install java-1.8.0-openjdk-devel -y cd /opt/app wget http://us.mirrors.quenda.co/apache/tomcat/tomcat-9/v9.0.16/bin/apache-tomcat-9.0.16.tar.gz tar xzvf apache-tomcat-9.0.16.tar.gz ln…

Read More »

nginx, Apache 2 and subversion – 502 Bad Gateway error

All subversion checkouts, commits and other basic operations work as expected, but when attempting to copy, move or tag (copy) a (502 Bad Gateway) error presents itself. The error may be similar to the one presented below. greg@codemine:~/code/Foo (git-svn)-[trunk] %>; git svn tag foo-2.1.1 Copying https://svn/projects/Foo/trunk at r18311 to https://svn/projects/Foo/tags/foo-2.1.1… RA layer request failed: Server sent unexpected return value (502…

Read More »

Real time Web Log analyzer using GoAccess

Scrolling through log files is unrealistic.  Using ‘awk’, ‘grep’, ‘sed’, and ‘cut’ to parse through them can be quite a chore – and still has it’s place for specific searches.  However, here is an interesting tool called GoAccess.  GoAccess is a real time web log analyzer tool. Running a CentOS 6, minimal installation, to install. yum install -y epel-release yum…

Read More »

Create an nginx load balancer

I wanted to play with a simple load balancer with powerful implications. A load balancer using nginx as the front end and two apache servers on the backend. server1 – apache – 192.168.1.89 (CentOS 6) yum -y install httpd echo server1 /var/www/html/index.html lokkit -s http -s https chkconfig httpd on && service httpd restart server2 – apache -192.168.1.90 (CentOS 6)…

Read More »

Subversion on CentOS 5.4 installation guide

Subversion is an open source version control system. This article will detail an installation of Subversion on a CentOS 5.x / Red Hat Enterprise Linux (RHEL) 5.x workstation. Subversion used for this article is version 1.6.911. Install rpmforge repository RPMforge.net release file. This package contains apt, yum and smart configuration for the RPMforge RPM Repository, as well as the public…

Read More »