Skip to content

Instantly share code, notes, and snippets.

@mhat
Created October 5, 2010 00:02
Show Gist options
  • Save mhat/610688 to your computer and use it in GitHub Desktop.
Save mhat/610688 to your computer and use it in GitHub Desktop.
Listen 443
<VirtualHost *:80>
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
<VirtualHost *:443>
ServerName yammer.local
ServerAlias ymodules.local
RequestHeader add X-Forwarded-Proto "https"
SSLEngine on
SSLCertificateFile "/private/etc/apache2/server.crt"
SSLCertificateKeyFile "/private/etc/apache2/server.key"
DocumentRoot "/Users/mde/work/workfeed/public"
RailsEnv development
<Directory "/Users/mde/work/workfeed/public">
Order allow,deny
Allow from all
</Directory>
# yamjs development proxy
<Proxy balancer://yamjs_dev_proxy_balancer>
BalancerMember http://0.0.0.0:8484
</Proxy>
ProxyPass /javascripts/yamjs balancer://yamjs_dev_proxy_balancer/javascripts/yamjs
ProxyPass /stylesheets/yamjs balancer://yamjs_dev_proxy_balancer/javascripts/yamjs
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment