Skip to content

Instantly share code, notes, and snippets.

View i-amolo's full-sized avatar

Innocent J. Blacius i-amolo

View GitHub Profile

Preface

This guide is one section of a larger guide to installing a cent 6.x server in virtual box for development purposes with different applications. The top level guide with links to all of the sections is here: https://gist.github.com/ryanguill/5149058 Some instructions in this guide may assume a configuration from other parts of the guide.

#Install Railo ColdFusion - manual installation

These instructions assume you are starting with a new VM cloned from your template

##Install httpd

@i-amolo
i-amolo / Apache tomcat setup
Created November 26, 2019 13:04 — forked from amolkhanorkar/Apache tomcat setup
Apache tomcat setup
Apache tomcat setup
Pre-requisites
JDK (java) should be install.
1. To Install Java
Download tarball package.
Goto the downloaded directory. Extract tarball jdk-6u31-linux-x64.tar.gz
@i-amolo
i-amolo / test_balancer_with_tomcat.txt
Created November 26, 2019 13:05 — forked from marcoberri/test_balancer_with_tomcat.txt
(WP) test balancer apache 2.4 with two tomcat on debian
#su una Ubuntu 15.04 server
##Install java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
##Verificare se è dispinibile la versione 2.4 di apache
@i-amolo
i-amolo / Apache Tomcat 8 Start stop script init.d script
Created November 26, 2019 15:10 — forked from miglen/Apache Tomcat 8 Start stop script init.d script
Apache Tomcat init script (or startup/controll script). Works fine for version 7/8. Read the comments for release history. Feel free to modify, copy and give suggestions. (c) GNU General Public License
#!/bin/bash
#
# description: Apache Tomcat init script
# processname: tomcat
# chkconfig: 234 20 80
#
#
# Copyright (C) 2014 Miglen Evlogiev
#
# This program is free software: you can redistribute it and/or modify it under
@i-amolo
i-amolo / gist:05896e34d9fb26c9c7b5e740710f47e9
Created November 27, 2019 15:37 — forked from amichaelgrant/gist:5866230
Configuring Nginx for Apache Tomcat 7
Configuring Nginx for Apache Tomcat 7
September 23, 2011 Java, NginX, Tomcat, Ubuntu 19 comments
Apache Tomcat can be the first choice of an Application Server for someone new to Java world. There are obviously other servers such as JBoss Application Server and IBM WebSphere but those may be slightly difficult for a newbie.
In some situations, like when we are serving a few websites with Nginx over port 80 (HTTP), it is required to configure Nginx in order to serve our Java web application which is running on Apache Tomcat. It is basically using Nginx as a Reverse Proxy This can be done with a new server section in Nginx configuration file (it is in /etc/nginx/sites-available/default by default) :
server {
listen mysite.com:80;
server_name mysite.com;

RHEL 7.4 Nginx + Apache Tomcat

의존성 update

sudo yum update

방화벽 설정

@i-amolo
i-amolo / tomcatssl.md
Created November 27, 2019 16:27 — forked from Teino1978-Corp/ tomcatssl.md
Tomcat SSL

Tomcat 6 under secured Nginx?

In Big Blue Button Tomcat 6 is used under Nginx.

Tomcat documentation for "SSL - How to" in "SSL and Tomcat" section, clames that:
"It is important to note that configuring Tomcat to take advantage of secure sockets is usually only necessary when running it as a stand-alone web server. When running Tomcat primarily as a Servlet/JSP container behind another web server, such as Apache or Microsoft IIS, it is usually necessary to configure the primary web server to handle the SSL connections from users. Typically, this server will negotiate all SSL-related functionality, then pass on any requests destined for the Tomcat container only after decrypting those requests. Likewise, Tomcat will return cleartext responses, that will be encrypted before being returned to the user's browser. In this environment, Tomcat knows that communications between the primary web server and the client are taking place over a secure conn

@i-amolo
i-amolo / nginxproxy.md
Created November 27, 2019 17:56 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@i-amolo
i-amolo / checked.js
Created March 11, 2020 06:27 — forked from batandwa/checked.js
jQuery - Get the checked items in group of checkboxes.
var checked = [];
$("input[name='items[]']:checked").each(function () {
checked.push($(this).val());
});
@i-amolo
i-amolo / php_performance_test.php
Created March 23, 2020 14:45 — forked from nunorbatista/php_performance_test.php
Script to measure PHP Performance Test
<?php
function test_Math($count = 140000) {
$time_start = microtime(true);
$mathFunctions = array("abs", "acos", "asin", "atan", "bindec", "floor", "exp", "sin", "tan", "pi", "is_finite", "is_nan", "sqrt");
foreach ($mathFunctions as $key => $function) {
if (!function_exists($function)) unset($mathFunctions[$key]);
}
for ($i=0; $i < $count; $i++) {
foreach ($mathFunctions as $function) {
$r = call_user_func_array($function, array($i));