Skip to content

Instantly share code, notes, and snippets.

@wtrocki
Created December 17, 2015 11:33
Show Gist options
  • Save wtrocki/242c8db93e2a4215ed62 to your computer and use it in GitHub Desktop.
Save wtrocki/242c8db93e2a4215ed62 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
DocumentRoot /dev/null
ProxyRequests off
ProxyPreserveHost On
ServerName npm.skunkhenry.com
<Location />
ProxyPass http://localhost:4873/
ProxyPassReverse http://localhost:4873/
Allow from all
</Location>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /dev/null
ProxyRequests off
ProxyPreserveHost On
ServerName npm.skunkhenry.com
SSLEngine on
SSLCertificateFile /etc/httpd/certs/ca.crt
SSLCertificateKeyFile /etc/httpd/certs/ca.key
<Location />
ProxyPass http://localhost:4873/
ProxyPassReverse http://localhost:4873/
Allow from all
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment