-
Notifications
You must be signed in to change notification settings - Fork 1
Web server config
filak edited this page Dec 13, 2023
·
18 revisions
Always copy the contents of the static dir to home/htdocs/assets-mtw and keep the dirs in sync when upgrading MTW !
Production
<VirtualHost *:443>
ServerName mtw.example.com
DocumentRoot "home/htdocs"
SSLEngine on
UseCanonicalName On
ProxyPreserveHost On
ErrorLog "logs/mtw-error.log"
CustomLog "logs/mtw-access.log" common
<Directory "home/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
RewriteEngine on
RewriteRule ^/mtw/assets-mtw/(.*) /assets-mtw/$1
<Location "/mtw">
ProxyPass "http://localhost:55930/mtw"
ProxyPassReverse "http://localhost:55930/mtw"
</Location>
</VirtualHost>
Testing
https://github.com/caddyserver/caddy/releases/tag/v1.0.4
mtw.example.com:443 {
root home/htdocs
log logs/mtw-access.txt
errors logs/mtw-error.txt
tls self_signed
proxy /mtw localhost:55930 {
transparent
keepalive 0
}
}