Skip to content

Instantly share code, notes, and snippets.

@AhmedKammorah
Created September 30, 2013 11:15
Show Gist options
  • Save AhmedKammorah/6762346 to your computer and use it in GitHub Desktop.
Save AhmedKammorah/6762346 to your computer and use it in GitHub Desktop.
VirtualHost
<VirtualHost 178.79.128.80:443>
ServerName api.intafeen.com
DocumentRoot /var/www
SSLEngine on
SSLCACertificateFile /etc/ssl/RapidSSL_CA_bundle.pem
SSLCertificateFile /etc/ssl/certs/api.intafeen.com.cert
SSLCertificateKeyFile /etc/ssl/private/api.intafeen.com.key
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
SSLRequireSSL
</Proxy>
ProxyPass /v1/ ajp://localhost:8009/https-datastore/
ProxyPassReverse /v1/ ajp://localhost:8009/https-datastore/
</VirtualHost>
<VirtualHost *:443>
ServerName alpha.api.intafeen.com
DocumentRoot /var/www
SSLEngine on
SSLCACertificateFile /etc/ssl/RapidSSL_CA_bundle.pem
SSLCertificateFile /etc/ssl/certs/alpha.api.intafeen.com.cert
SSLCertificateKeyFile /etc/ssl/private/alpha.api.intafeen.com.insecure.key
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
</Proxy>
ProxyPass /v1/ ajp://localhost:8009/https-rg-datastore/
ProxyPassReverse /v1/ ajp://localhost:8009/https-rg-datastore/
ProxyPass /vi/ ajp://localhost:8009/internal-rg-datastore/
ProxyPassReverse /vi/ ajp://localhost:8009/internal-rg-datastore/
ErrorLog /var/log/apache2/alpha.api.intafeen.com_error.log
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment