Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name example.com;
- listen 80;
- root /var/www/php;
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- location ~ ^/app(/.*|$) {
- alias /var/www/rails/current/public$1;
- access_log /var/www/rails/current/log/access.log;
- error_log /var/www/rails/current/log/error.log;
- passenger_base_uri /app;
- passenger_app_root /var/www/rails;
- passenger_document_root /var/www/rails/currnet/public;
- passenger_enabled on;
- passenger_app_env production;
- passenger_friendly_error_pages on;
- passenger_ruby /usr/local/rvm/gems/ruby-2.1.5@app/wrappers/ruby;
- client_max_body_size 4G;
- keepalive_timeout 10;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement