Added Apache2 config example
This commit is contained in:
parent
413b6715a1
commit
1eec09deb5
2 changed files with 15 additions and 0 deletions
12
setup/mailtrain-apache.conf
Normal file
12
setup/mailtrain-apache.conf
Normal 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>
|
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue