Added Apache2 config example

This commit is contained in:
Andris Reinman 2016-09-28 16:33:28 +03:00
parent 413b6715a1
commit 1eec09deb5
2 changed files with 15 additions and 0 deletions

View file

@ -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
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass "/" "http://127.0.0.1:3000/"
ProxyPassReverse "/" "http://127.0.0.1:3000/"
ServerName mailtrain.org
ServerAlias www.mailtrain.org
</VirtualHost>

View file

@ -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;