Created
September 7, 2021 13:19
-
-
Save Ghostscypher/f83d95844f31c4b5f8eb30c0500935b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost _default_:443> | |
ServerName example.com | |
ServerAlias app1.example.com app2.example.com | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/public_html/example.com/public | |
<Directory /var/www/public_html/example.com> | |
AllowOverride All | |
</Directory> | |
### Our config starts here ### | |
ProxyPass "/app/" "ws://127.0.0.1:6000/app/" | |
ProxyPass "/apps/" "http://127.0.0.1:6000/apps/" | |
### Our config ends here ### | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
# Add correct paths below for SSL support | |
#SSLEngine on | |
#SSLCertificateFile /path/to/cert.cer | |
#SSLCertificateKeyFile /path/to/cert.key | |
#SSLCertificateChainFile /path/to/fullchain.crt | |
#SSLCACertificateFile /path/to/ca.cer | |
#.... | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment