Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. server {
  2. server_name example.com;
  3. listen 80;
  4.  
  5. root /var/www/php;
  6.  
  7. try_files $uri =404;
  8. fastcgi_pass unix:/var/run/php5-fpm.sock;
  9. fastcgi_index index.php;
  10. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  11. include fastcgi_params;
  12.  
  13. location ~ ^/app(/.*|$) {
  14. alias /var/www/rails/current/public$1;
  15.  
  16. access_log /var/www/rails/current/log/access.log;
  17. error_log /var/www/rails/current/log/error.log;
  18.  
  19. passenger_base_uri /app;
  20. passenger_app_root /var/www/rails;
  21. passenger_document_root /var/www/rails/currnet/public;
  22. passenger_enabled on;
  23. passenger_app_env production;
  24. passenger_friendly_error_pages on;
  25. passenger_ruby /usr/local/rvm/gems/ruby-2.1.5@app/wrappers/ruby;
  26.  
  27. client_max_body_size 4G;
  28. keepalive_timeout 10;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement