Skip to content

Instantly share code, notes, and snippets.

@jhaury
Created November 7, 2017 21:15
Show Gist options
  • Save jhaury/10508bfef231bc09c4eae4723645b4f0 to your computer and use it in GitHub Desktop.
Save jhaury/10508bfef231bc09c4eae4723645b4f0 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
ProxyRequests off
DocumentRoot /path/to/my/servers/www/mydomain.com
SSLProxyEngine on
ProxyPreserveHost on
ServerName mydomain.com
ErrorLog ${APACHE_LOG_DIR}/nodered-mydomain-error.log
CustomLog ${APACHE_LOG_DIR}/nodered-mydomain-access.log combined
LogLevel error
ProxyPass /twiliosms https://noderedaddress:1880/twilio
ProxyPassReverse /twiliosms https://noderedaddress:1880/twilio
ProxyPass /twiliovoice https://noderedaddress:1880/twiliovoice
ProxyPassReverse /twiliovoice https://noderedaddress:1880/twiliovoice
ProxyPass /twilioivr https://noderedaddress:1880/twilioivr
ProxyPassReverse /twilioivr https://noderedaddress:1880/twilioivr
ProxyPass /alexa https://noderedaddress:1880/alexa
ProxyPassReverse /alexa https://noderedaddress:1880/alexa
# Order allow,deny
# Allow from all
<Directory "/path/to/my/servers/www/mydomain.com">
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment