Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName api.yourdomain.com
- ProxyPass / http://www.example.com:8001/
- ProxyPassReverse / http://www.example.com:8001/
- </VirtualHost>
- <VirtualHost *:443>
- ServerAdmin [email protected]
- ServerName api.domain.com
- ProxyPass / http://localhost:8080/
- ProxyPassReverse / http://localhost:8080/
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- SSLEngine on
- SSLCertificateFile /etc/letsencrypt/live/api.domain.com/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/api.domain.com/privkey.pem
- SSLCertificateChainFile /etc/letsencrypt/live/api.domain.com/fullchain.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement