Skip to content

Instantly share code, notes, and snippets.

View arunakulat's full-sized avatar

Aruna Kulatunga arunakulat

View GitHub Profile
#!/bin/bash
###
#
# Copyright (c) 2011 Cake Development Corporation (http://cakedc.com)
#
# Ubuntu 11.04 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 11.04 server:
#
# bash -c "$(curl -fsSL https://raw.github.com/gist/1264701)" <mysqlPassword>
#!/bin/bash
###
#
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea
# Copyright (c) 2011 Cake Development Corporation (http//cakedc.com)
#
# Ubuntu 12.10 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#
extension=apc.so
apc.shm_size = 128M
apc.stat = 0
apc.ttl = 0
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
# shell script fragment.
#
START=yes
# Maximum number of open files (for ulimit -n)
NFILES=131072
# A drupal varnish config file for varnish 3.x
#
# Will work with Drupal 7 and Pressflow 6.
#
# Default backend definition. Set this to point to your content
# server. We are assuming you have a web server running on port 8080.
#
C{
#include <sys/time.h>
#include <stdio.h>
server {
listen 8080;
server_name example.com www.example.com;
root /var/www/example.com; ## <-- Your only path reference.
client_max_body_size 1024M;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Url-Scheme $scheme;