From 1eec09deb5e12b98246c26722feef8cd8116d84f Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Wed, 28 Sep 2016 16:33:28 +0300 Subject: [PATCH] Added Apache2 config example --- setup/mailtrain-apache.conf | 12 ++++++++++++ setup/{mailtrain.nginx => mailtrain-nginx.conf} | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 setup/mailtrain-apache.conf rename setup/{mailtrain.nginx => mailtrain-nginx.conf} (75%) diff --git a/setup/mailtrain-apache.conf b/setup/mailtrain-apache.conf new file mode 100644 index 00000000..8f0e9146 --- /dev/null +++ b/setup/mailtrain-apache.conf @@ -0,0 +1,12 @@ +# This example sets up mailtrain.org/www.mailtrain.org virtual domains +# for Apache2 and proxies requests for these domains to localhost port 3000 + +# Using mod_proxy is not enabled by default, so you probably need to do this yourself + + + ProxyPreserveHost On + ProxyPass "/" "http://127.0.0.1:3000/" + ProxyPassReverse "/" "http://127.0.0.1:3000/" + ServerName mailtrain.org + ServerAlias www.mailtrain.org + diff --git a/setup/mailtrain.nginx b/setup/mailtrain-nginx.conf similarity index 75% rename from setup/mailtrain.nginx rename to setup/mailtrain-nginx.conf index 08bf18d8..06541286 100644 --- a/setup/mailtrain.nginx +++ b/setup/mailtrain-nginx.conf @@ -1,3 +1,6 @@ +# This example sets up mailtrain.org/www.mailtrain.org virtual domains +# for Nginx and proxies requests for these domains to localhost port 3000 + server { listen 80; listen [::]:80;