From f11a97e060addaec6396fc4dfadf708a7e93a1bb Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Sat, 5 Oct 2013 14:38:00 -0500 Subject: [PATCH] Add Apache configs. --- support/apache/plinth-ports.conf | 1 + support/apache/sites-available/plinth.conf | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 support/apache/plinth-ports.conf create mode 100644 support/apache/sites-available/plinth.conf diff --git a/support/apache/plinth-ports.conf b/support/apache/plinth-ports.conf new file mode 100644 index 000000000..700959917 --- /dev/null +++ b/support/apache/plinth-ports.conf @@ -0,0 +1 @@ +Listen 0.0.0.0:8001 diff --git a/support/apache/sites-available/plinth.conf b/support/apache/sites-available/plinth.conf new file mode 100644 index 000000000..cf8864e63 --- /dev/null +++ b/support/apache/sites-available/plinth.conf @@ -0,0 +1,26 @@ + + ServerAdmin webmaster@localhost + + + ProxyPass http://127.0.0.1:8000/ + Order allow,deny + Allow from 10.0.0.0/8 + Allow from 172.16.0.0/12 + Allow from 192.168.0.0/16 + + + ErrorLog ${APACHE_LOG_DIR}/error.log + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel warn + + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + SSLEngine on + SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem + SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key + + +