You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
In production.rb
When u using nginx u must uncomment these lines to serve files
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
I'm trying to configuration my nginx
Nginx Configuration
Define the internal location:
Add a location block in your Nginx configuration to handle the internal redirects. For example:
location /protected/ {
internal;
alias /path/to/protected/files/;
}
Set the X-Accel-Mapping header:
Ensure that the X-Accel-Mapping header maps the real file path to the internal location. For example:
Hi
In production.rb
When u using nginx u must uncomment these lines to serve files
I'm trying to configuration my nginx
Nginx Configuration
Define the internal location:
Add a location block in your Nginx configuration to handle the internal redirects. For example:
Set the X-Accel-Mapping header:
Ensure that the X-Accel-Mapping header maps the real file path to the internal location. For example:
But all my attachments and thumbs give 404
The text was updated successfully, but these errors were encountered: