How to redirect to the application folder?

Asked

Viewed 115 times

1

Use the ROR with the Nginx.

How do I stop what the nginx redirect to the application folder? Instead of the folder /public.

1 answer

1

See in this file nginx.conf I used in the production: https://gist.github.com/awesome/8821551#file-Nginx-conf-L108

location /images/ {
  root /var/www/shared/images;

  rewrite  ^/images/(.*)\.(.*)$  /$subdomain/$1.$2  break;
  rewrite  ^/images/(.*)\.(.*)$  /$subdomain/images/$1.$2  break;
  rewrite  ^/images/(.*)\.(.*)$  /$subdomain/images/original/$1.$2  break;

  # retornar arquivo específico quando nenhuma correspondência
  #error_page   404          /404.html;

  # retornar apenas
  return   403;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.