Files
doclink_web/deploy/apache-vhost.template.conf
2026-04-14 06:47:40 +07:00

21 lines
527 B
Plaintext

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