For me path of nginx.conf
was /etc/nginx/nginx.conf
.
In my case I just added client_max_body_size
in http block
and it worked for me
http { ... client_max_body_size 20M; }
Make sure to restart nginx
after changing this config
Related Posts:
- How do I parse JSON with Ruby on Rails? [duplicate]
- 400 Bad Request – request header or cookie too large
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- What is difference between Lightsail and EC2?
- Rails 5 ActionController::InvalidAuthenticityToken error
- what does ? ? mean in ruby
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- Cannot load such file — bcrypt_ext
- How do I remove Permission denied @ rb_sysopen – Gem install error?
- What is the difference between Amazon ECS and Amazon EC2?
- Difference between Amazon EC2 and AWS Elastic Beanstalk
- warning: constant ::Fixnum is deprecated When generating new model
- Rails 4 RoutingError: No Route Matches
- PG::ConnectionBad – could not connect to server: Connection refused
- Rails syntax error : unexpected keyword_ensure, expecting end-of-input
- bcrypt LoadError: Cannot load such file
- Uninitialized constant “Controller Name”
- Ruby: What is the easiest way to remove the first element from an array?
- Ruby String to Date Conversion
- Error “You must specify a region” when running any aws CLI command
- Difference between rake db:migrate db:reset and db:schema:load
- TypeError: no implicit conversion of Symbol into Integer
- An unhandled lowlevel error occurred. The application logs may have details
- Rails button_to vs. HTML Button Tag
- GROUP BY and COUNT using ActiveRecord
- Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue
- Uploading a file in Rails
- Generate model in Rails using user_id:integer vs user:references
- An error occurred while installing json (1.8.1), and Bundler cannot continue – Rails
- where is devise implementation of “authenticate_user!” method?
- What is the difference between “rake db:seed” and rake db:fixtures:load”
- Amazon Workspaces VM prevented from logging in to WordPress on DreamHost
- How to force or redirect to SSL in nginx?
- How can I upgrade to Java 1.8 on an Amazon Linux Server?
- What Linux distribution is the Amazon Linux AMI based on?
- Get underlined text with Markdown
- How can I use environment variables in Nginx.conf
- “413 Request Entity Too Large” in Nginx with “client_max_body_size” set
- Advanced AREL or just Rails Query for has_many through search by association
- What is the meaning of *nix?
- Get underlined text with Markdown
- Why Puma listen on ‘tcp://localhost:3000’ instead of ‘http://localhost:3000’
- What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?
- Explain what " means
- What does the “map” method do in Ruby?
- AWS Lambda:The provided execution role does not have permissions to call DescribeNetworkInterfaces on EC2
- AWS – Disconnected : No supported authentication methods available (server sent :publickey)
- Possible reason for NGINX 499 error codes
- ActionController::InvalidAuthenticityToken
- Terminal error: zsh: permission denied: ./startup.sh
- How to write a switch statement in Ruby
- bundle install returns “Could not locate Gemfile”
- How can I use an .htaccess file in Nginx?
- What is the difference between Amazon SNS and Amazon SQS?
- ActionController::InvalidAuthenticityToken
- Parsing a JSON string in Ruby
- AngularJS- Login and Authentication in each route and controller
- Tell Ruby Program to Wait some amount of time
- Rails: Why “sudo” command is not recognized?
- AWS: What does 0.0.0.0/0 and ::/0 mean?
- DynamoDB : The provided key element does not match the schema
- Nginx: Failed to start A high performance web server and a reverse proxy server
- Ruby: Can I write multi-line string with no concatenation?
- HAProxy vs. Nginx
- Rails: Can’t verify CSRF token authenticity when making a POST request
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?
- Why use Ruby’s attr_accessor, attr_reader and attr_writer?
- undefined method `each’ for nil:NilClass… why?
- What does %w(array) mean?
- Bundler: You must use Bundler 2 or greater with this lockfile
- boto3 client NoRegionError: You must specify a region error only sometimes
- What is the difference between Elastic Beanstalk and CloudFormation for a .NET project?
- How to update Ruby with Homebrew?
- How can I resolve the error “The security token included in the request is invalid” when running aws iam upload-server-certificate?
- Nginx 403 forbidden for all files
- DynamoDB – Key element does not match the schema
- How to use “gets” and “gets.chomp” in Ruby
- Getting a substring in Ruby by x number of chars
- undefined method `each’ for nil:NilClass… why?
- Using Pundit for all-access “super_admin” role
- How to check whether a string contains a substring in Ruby
- How to tell if homebrew is installed on Mac OS X
- Ruby: How to install a specific version of a ruby gem?
- class << self idiom in Ruby
- Parsing XML with Ruby
- What is the difference between Rails.cache.clear and rake tmp:cache:clear?
- ruby operator “=~” [duplicate]
- What does << mean in Ruby?
- What is attr_accessor in Ruby?
- ActionController::UnknownFormat
- What does ||= (or-equals) mean in Ruby?
- Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
- How to read lines of a file in Ruby
- Array to Hash Ruby
- How to improve paralelized computing in AWS EC2?
- Ruby: undefined method `[]’ for nil:NilClass when trying to get Enumerator on an Array of Hashes
- Difference between “or” and || in Ruby?
- How can I use wildcards to `cp` a group of files with the AWS CLI
- How to map with index in Ruby?