Add base-path deployment support
This commit is contained in:
20
deploy/apache-vhost.template.conf
Normal file
20
deploy/apache-vhost.template.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName __SERVER_NAME__
|
||||
Redirect permanent / https://__SERVER_NAME__/
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName __SERVER_NAME__
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile __SSL_CERT_FILE__
|
||||
SSLCertificateKeyFile __SSL_KEY_FILE__
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests Off
|
||||
|
||||
RedirectMatch 301 ^/__BASE_PATH__$ /__BASE_PATH__/
|
||||
|
||||
ProxyPass /__BASE_PATH__/ http://127.0.0.1:__APP_PORT__/
|
||||
ProxyPassReverse /__BASE_PATH__/ http://127.0.0.1:__APP_PORT__/
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user