code_junkie

How do I configure Apache 2.2 for Ruby on Rails in Windows?

Nov 11th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. LoadModule proxy_module modules/mod_proxy.so
  2. LoadModule proxy_http_module modules/mod_proxy_http.so
  3. <VirtualHost localhost:80>
  4. ServerName www.myapp.comm
  5. DocumentRoot "C:/web/myapp/public"
  6. ProxyPass / http://www.myapp.com:3000/
  7. ProxyPassReverse / http://www.myapp.com:3000/
  8. ProxyPreserveHost On
  9. </VirtualHost>
  10.  
  11. mongrel_rails start -p 3000 -e production
  12.  
  13. gem install mongrel_service
  14.  
  15. gem install mongrel_service --platform x86-mswin32
  16.  
  17. mongrel_rails service::install --name MyApp -e production -p 3001 -a 0.0.0.0
  18.  
  19. mongrel_rails service::remove --name MyApp
Add Comment
Please, Sign In to add comment