Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 6th, 2012  |  syntax: None  |  size: 0.84 KB  |  views: 154  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Listen 443
  2.  
  3. <VirtualHost *:80>
  4.   RewriteEngine On
  5.   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  6. </VirtualHost>
  7.  
  8. <VirtualHost *:443>
  9.   ServerName yammer.local
  10.   ServerAlias ymodules.local
  11.  
  12.   RequestHeader add X-Forwarded-Proto "https"
  13.   SSLEngine   on
  14.   SSLCertificateFile    "/private/etc/apache2/server.crt"
  15.   SSLCertificateKeyFile "/private/etc/apache2/server.key"
  16.  
  17.   DocumentRoot "/Users/mde/work/workfeed/public"
  18.   RailsEnv development
  19.   <Directory "/Users/mde/work/workfeed/public">
  20.     Order allow,deny
  21.     Allow from all
  22.   </Directory>
  23.  
  24.   # yamjs development proxy
  25.   <Proxy balancer://yamjs_dev_proxy_balancer>
  26.     BalancerMember http://0.0.0.0:8484
  27.   </Proxy>
  28.   ProxyPass /javascripts/yamjs  balancer://yamjs_dev_proxy_balancer/javascripts/yamjs
  29.   ProxyPass /stylesheets/yamjs  balancer://yamjs_dev_proxy_balancer/javascripts/yamjs
  30.  
  31. </VirtualHost>