Skip to content

Instantly share code, notes, and snippets.

@moneytoo
moneytoo / gist:ab3f34e4fddc2110675952f8280f49c5
Last active March 22, 2020 16:05
nginx with OpenSSL 1.0.2 (ALPN) on CentOS 7, also available from https://brouken.com/brouken-centos-7-repo/
### No longer needed as of nginx-1.13.6-1.el7_4.ngx.x86_64.rpm from nginx.org
### it was compiled against OpenSSL 1.0.2 from CentoOS 7.4 so it supports ALPN (HTTP2 works)
yum -y groupinstall 'Development Tools'
yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools
OPENSSL="openssl-1.0.2l"
NGINX_VERSION="1.13.5-1"
NJS_VERSION="1.13.5.0.1.13-1"
@five-oclock-heroes
five-oclock-heroes / multidomain.ssl.txt
Last active November 22, 2023 06:42
Apache + SSL Multi-domain Configuration
# Description
Piecing together lots of information from different sources, this covers setup and configuration for:
1. Creating a self-signed, mulit-domain certificate for a development environment running OS X.
2. Generating a multi-domain certificate signing request (CSR) for staging/production environments running on CentOS 7.
3. Installing certificate and Apache configuration.
This assumes all environments are running OpenSSL v.0.9.8f or later and Apache 2 with Server Name Indication (SNI) support. SNI is the bit of magic that allows one certificate to be valid to use with Virtual Hosts with different domains on one server. See Apache configuration link in the Sources section below for more information and a much better explanation on how it all works.
# Development
@nidgetgod
nidgetgod / icu-install.sh
Last active March 27, 2025 14:16 — forked from siffash/icu-install.sh
Install ICU from source and build php-intl with the specific version of ICU
#!/usr/bin/env bash
if [[ -x $(which php) ]]; then
PHP_ICU_VERSION=$(php -r 'echo defined("INTL_ICU_VERSION") ? INTL_ICU_VERSION : "none";')
echo "PHP ICU version: $PHP_ICU_VERSION"
else
echo 'WARNING: PHP not installed'
PHP_ICU_VERSION=none
fi