webserver - How to set the allowed url length for a nginx request (error code: 414, uri too large) - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/1067334/how-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=cc49ce762956) (Feed for question 'How to set the allowed url length for a nginx request (error code: 414, uri too large)') (/feeds/question/1067334) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) (1) (2.0) Sign up with Google Sign up with GitHub OR (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1067334%2fhow-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1067334%2fhow-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1067334%2fhow-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1067334%2fhow-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv api maven linq qt dictionary unit-testing facebook asp.net-core tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony opencv t-sql matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github elasticsearch spring-mvc kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers machine-learning c++11 google-sheets security flask google-apps-script ruby-on-rails-3 nginx templates variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join laravel-5 winapi rust url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing asp.net-mvc-4 gcc web logging dom swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui cocoa iis xpath d3.js firefox javafx internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory audio canvas multidimensional-array jsf random cookies vector redux facebook-graph-api input flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce routes razor awk azure-devops servlets mod-rewrite beautifulsoup docker-compose iframe filter excel-formula aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox google-chrome-extension ecmascript-6 time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit deep-learning boost import sass memory-management error-handling async-await eloquent dynamic soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins c#-4.0 makefile redis reporting-services jupyter-notebook server merge https unicode reflection google-maps-api-3 twitter oauth-2.0 extjs axios pytorch terminal pip split mysqli cmd django-views encoding automation netbeans database-design collections hash data-binding ember.js build tcp sqlalchemy pdo apache-flex concurrency command-line entity-framework-core spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j ansible lua parameters module material-ui visual-studio-2012 enums promise flexbox outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive tfs scipy count syntax ms-word twitter-bootstrap-3 ssis google-analytics three.js fonts constructor powerbi graphql rxjs file-io paypal discord cassandra socket.io graphics compiler-errors gwt nlp react-router solr backbone.js url-rewriting datatables memory-leaks oauth datagridview terraform drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list path proxy timer django-templates arduino orm directory parse-platform visual-studio-2015 windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview visual-studio-2013 gitlab vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 process configuration rspec properties pygame combobox callback windows-phone-8 safari linux-kernel permissions scrapy raspberry-pi scripting emacs clojure scope io x86 compilation mongodb-query responsive-design nhibernate angularjs-directive request expo bluetooth 3d dns azure-functions binding reference discord.js architecture playframework pyqt version-control doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree controller jackson yii nested grep xamarin.ios static statistics dockerfile transactions null datagrid active-directory uiviewcontroller phpmyadmin webforms discord.py notifications computer-vision sas duplicates mocking youtube nullpointerexception yaml menu sum bitmap electron asp.net-mvc-5 visual-studio-2008 time-series yii2 jsf-2 android-listview css-selectors stl blazor floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla navigation cors devise anaconda frontend background camera pyqt5 multiprocessing binary cuda linq-to-sql iterator mariadb onclick ios7 plotly rabbitmq android-asynctask android-jetpack-compose microsoft-graph-api tabs insert laravel-4 amazon-dynamodb uicollectionview environment-variables linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system mockito localization vuejs3 xml-parsing macros formatting json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header sprite-kit mfc fortran attributes nosql nuxt.js format nestjs azure-pipelines odoo jquery-plugins db2 leaflet jenkins-pipeline event-handling postman flutter-layout annotations julia keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports azure-web-app-service timezone dom-events android-emulator swagger uikit sequelize.js wso2 aggregation-framework namespaces uiscrollview jvm chart.js google-sheets-formula com subprocess geolocation centos webdriver html5-canvas widget garbage-collection dialog numbers snowflake-cloud-data-platform concatenation sql-update qml windows-10 set mapreduce tuples smtp ionic2 java-stream rotation modal-dialog android-edittext spring-data http-headers nuget doctrine radio-button grid sonarqube lucene xmlhttprequest internationalization listbox components initialization switch-statement google-play boolean apache-camel serial-port ldap ios5 youtube-api return gdb latex pivot eclipse-plugin frameworks tags containers dataset github-actions asp-classic foreign-keys subquery label copy uinavigationcontroller google-cloud-storage delegates c++17 struts2 migration base64 protractor sql-server-2008-r2 queue find uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration windows-7 airflow r-markdown ssl-certificate vb6 gmail hover jqgrid g++ tailwind-css udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/1067334/how-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too) How to set the allowed url length for a nginx request (error code: 414, uri too large) (/questions/ask) Ask Question (2009-07-01 04:59:44Z) Asked 15 years, 8 months ago Modified (?lastactivity) (2022-02-23 13:30:19Z) 3 years ago (Viewed 191,048 times) Viewed 191k times This question shows research effort; it is useful and clear (69:3:31e,16:0f2fbbf68a591db5,10:1740353078,16:61c854b88e43f191,7:1067334,1918a4827ba63aee3c66902a97efe0e06b23cf323dbe4e07184e1ef932cb7ea0) 100 (This question does not show any research effort; it is unclear or not useful) (69:3:31e,16:087e06206b424857,10:1740353078,16:c9721d8d08d502d9,7:1067334,c9f19616847b55db6e8a1e7c6c6a51f4ab3765cd0dde33c69bece0f0973743d8) Save this question. (/posts/1067334/timeline) Show activity on this post. I am using Nginx in front of 10 mongrels. When I make a request with size larger then 2900 I get back an: error code 414: uri too large Does anyone know the setting in the nginx configuration file which determines the allowed uri length ? (/questions/tagged/nginx) (show questions tagged 'nginx') nginx (/questions/tagged/webserver) (show questions tagged 'webserver') webserver (/questions/tagged/http-request) (show questions tagged 'http-request') http-request (/q/1067334) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/1067334/edit) () Improve this question Follow (69:3:31e,16:e81de79e20eccf0d,10:1740353078,16:9479582adc0eb536,7:1067334,a1a067fc81eb31998fdbef6567b85da1926390af92a313bf7209b150136d9697) Follow this question to receive notifications (/posts/1067334/revisions) (show all edits to this post) edited (2017-02-15 13:53:49Z) Feb 15, 2017 at 13:53 (/users/4779556/roald-nefs) (Roald Nefs's user avatar) (/users/4779556/roald-nefs) Roald Nefs (reputation score) 1,412 (12 silver badges) 12 12 silver badges (30 bronze badges) 30 30 bronze badges asked (2009-07-01 04:59:44Z) Jul 1, 2009 at 4:59 (/users/127511/prakash-raman) (Prakash Raman's user avatar) (/users/127511/prakash-raman) Prakash Raman Prakash Raman (reputation score 13,933) 13.9k (29 gold badges) 29 29 gold badges (87 silver badges) 87 87 silver badges (137 bronze badges) 137 137 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 3 Answers 3 Sorted by: (/questions/1067334/how-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (69:3:31e,16:be9268602b8de4cb,10:1740353078,16:67bd3680bfcdead6,7:1067462,f9120e6e42ef2e99d3bc6464cea2074e14b6e8b90fa3595fa5edd5231bf7733a) 146 (This answer is not useful) (69:3:31e,16:513b5b60749b998c,10:1740353078,16:16d64742d6344c34,7:1067462,58cf37f7b6889de8bf30e7e4c68b9126f063e38a6b0276b1a0d59d9b8621e367) Save this answer. (Loading when this answer was accepted…) (/posts/1067462/timeline) Show activity on this post. From: (http://nginx.org/r/large_client_header_buffers) http://nginx.org/r/large_client_header_buffers Syntax: large_client_header_buffers number size ; Default: large_client_header_buffers 4 8k; Context: http, server Sets the maximum number and size of buffers used for reading large client request header. A request line cannot exceed the size of one buffer, or the 414 (Request-URI Too Large) error is returned to the client. A request header field cannot exceed the size of one buffer as well, or the 400 (Bad Request) error is returned to the client. Buffers are allocated only on demand. By default, the buffer size is equal to 8K bytes. If after the end of request processing a connection is transitioned into the keep-alive state, these buffers are released. so you need to change the size parameter at the end of that line to something bigger for your needs. (/a/1067462) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/1067462/edit) () Improve this answer Follow (69:3:31e,16:01fb189a601cfbe2,10:1740353078,16:08ba787dea1a5ad7,7:1067462,ed6c98e5e7e55ebae1d6307714d63e6dc7b9d8e84b424c1928489ea5a84d3fa9) Follow this answer to receive notifications (/posts/1067462/revisions) (show all edits to this post) edited (2020-06-20 09:12:55Z) Jun 20, 2020 at 9:12 (/users/-1/community) (Community's user avatar) (/users/-1/community) Community (Community Bot — not a real person. Replies to this bot are not monitored.) Bot (reputation score) 1 (1 silver badge) 1 1 silver badge answered (2009-07-01 05:46:45Z) Jul 1, 2009 at 5:46 (/users/43452/stobor) (Stobor's user avatar) (/users/43452/stobor) Stobor Stobor (reputation score 45,132) 45.1k (6 gold badges) 6 6 gold badges (68 silver badges) 68 68 silver badges (69 bronze badges) 69 69 bronze badges 9 (number of 'useful comment' votes received) 2 Thanks @VBart - back when I answered this the wiki was the only docs, so I didn't realise they had added an "official" documentation section. – (/users/43452/stobor) (45,132 reputation) Stobor Commented (2014-02-25 06:17:19Z, License: CC BY-SA 3.0) Feb 25, 2014 at 6:17 (number of 'useful comment' votes received) 1 Thanks @talsibony - that was a direct copy/paste from the documentation over 7 years ago, it looks like they've updated it since then. I'll update it here... – (/users/43452/stobor) (45,132 reputation) Stobor Commented (2016-12-16 01:45:05Z, License: CC BY-SA 3.0) Dec 16, 2016 at 1:45 (number of 'useful comment' votes received) 4 It resolved 414 error but now nginx gives 502 - Bad Gateway error. – (/users/2756439/sohel-pathan) (365 reputation) Sohel Pathan Commented (2019-12-27 12:41:41Z, License: CC BY-SA 4.0) Dec 27, 2019 at 12:41 (number of 'useful comment' votes received) 1 I m not sure what file should have that configuration, does anyone knows? – (/users/5117084/guido) (431 reputation) Guido Commented (2020-09-15 21:08:48Z, License: CC BY-SA 4.0) Sep 15, 2020 at 21:08 (number of 'useful comment' votes received) 1 thanks yes I got it on /etc/nginx/nginx.conf thanks – (/users/5117084/guido) (431 reputation) Guido Commented (2020-09-15 22:56:49Z, License: CC BY-SA 4.0) Sep 15, 2020 at 22:56 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 4 more comments This answer is useful (70:3:31e,16:d8f0a5a0cd0ea976,10:1740353078,16:1eb60a5b8d89d088,8:54257658,31f60d9a0526085d9d4169015f90347a271a4af5cf2afc737e99c2d1fdbca531) 19 (This answer is not useful) (70:3:31e,16:9ada419a02ee3f24,10:1740353078,16:71a43a9a34e2043e,8:54257658,4fd5d9997f0ad5d5ceb857abebc5fe3ad8a17125dccb4dcea6459714650d3b0f) Save this answer. (Loading when this answer was accepted…) (/posts/54257658/timeline) Show activity on this post. For anyone having issues with this on (https://forge.laravel.com) https://forge.laravel.com , I managed to get this to work using a compilation of SO answers; You will need the sudo password. sudo nano /etc/nginx/conf.d/uploads.conf Replace contents with the following; fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; client_max_body_size 24M; client_body_buffer_size 128k; client_header_buffer_size 5120k; large_client_header_buffers 16 5120k; (/a/54257658) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/54257658/edit) () Improve this answer Follow (70:3:31e,16:b212edad682bb572,10:1740353078,16:2ce757bacad84e96,8:54257658,3e8df43c4f1fb4e1dcabbf402ac3c415d29743c15ab22eefcf85b456d1e9d728) Follow this answer to receive notifications answered (2019-01-18 16:12:32Z) Jan 18, 2019 at 16:12 (/users/1719075/luke-snowden) (Luke Snowden's user avatar) (/users/1719075/luke-snowden) Luke Snowden Luke Snowden (reputation score) 4,196 (2 gold badges) 2 2 gold badges (40 silver badges) 40 40 silver badges (73 bronze badges) 73 73 bronze badges 1 This file no longer seems to exist when creating new servers via forge which means you can add it straight into the server block via the forge admin panel. – (/users/1719075/luke-snowden) (4,196 reputation) Luke Snowden Commented (2019-09-24 10:29:24Z, License: CC BY-SA 4.0) Sep 24, 2019 at 10:29 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:2a8d9dc63ead206a,10:1740353078,16:71f4d00dcb5887e1,8:71237849,2096d160ab5ccdaa58f7e0c3a2d689f62a073976151f55fbe6575e3ee35b48e2) 8 (This answer is not useful) (70:3:31e,16:c4a71bc1a34fe20f,10:1740353078,16:7b697fbf8a27a17d,8:71237849,d408299f84026155ffe994e5117dbe4b34e49b71de381ef4b6bb7f2598f215b1) Save this answer. (Loading when this answer was accepted…) (/posts/71237849/timeline) Show activity on this post. I had very similar issue but with a different error upstream sent too big header while reading response header from upstream In order to fix it I've changed server { .... proxy_buffers 4 32k; proxy_buffer_size 32k; ... } For more information you can visit (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffers) nginx-doc (/a/71237849) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/71237849/edit) () Improve this answer Follow (70:3:31e,16:eec3de7bcc8e2f55,10:1740353078,16:b0486d5d12105c7e,8:71237849,ba4aff55c4f08b6d4da61330d06510dd5ff18948a742015b92060d56ec1dba24) Follow this answer to receive notifications answered (2022-02-23 13:30:19Z) Feb 23, 2022 at 13:30 (/users/4430087/ciostek223) (ciostek223's user avatar) (/users/4430087/ciostek223) ciostek223 ciostek223 (reputation score) 716 (6 silver badges) 6 6 silver badges (6 bronze badges) 6 6 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (1067334) (false) () Your Answer (False) Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. (/help/gen-ai-policy) Learn more (true) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (8715abeb62cf6a9fe93de824cea527599cbf4e957f73c9d6615a4213f6b2728c) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f1067334%2fhow-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Not the answer you're looking for? Browse other questions tagged (/questions/tagged/nginx) (show questions tagged 'nginx') nginx (/questions/tagged/webserver) (show questions tagged 'webserver') webserver (/questions/tagged/http-request) (show questions tagged 'http-request') http-request or (/questions/ask) ask your own question . The Overflow Blog (https://stackoverflow.blog/2025/02/20/research-roadmap-update-february-2025/?cb=1) Research roadmap update, February 2025 (https://stackoverflow.blog/2025/02/21/one-quality-every-engineering-manager-should-have-empathy/?cb=1) One quality every engineering manager should have? Empathy. Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/406399/join-us-for-our-first-community-wide-ama-ask-me-anything-with-stack-overflow-s?cb=1) (Join us for our first community-wide AMA (Ask Me Anything) with Stack Overflow’s CEO (and a few others) on February 26, 2025) Join us for our first community-wide AMA (Ask Me Anything) with Stack... (Meta Stack Exchange) (https://meta.stackexchange.com/questions/406575/bigbird-and-frog-have-joined-us-as-community-managers?cb=1) bigbird and Frog have joined us as Community Managers (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) Policy: Generative AI (e.g., ChatGPT) is banned (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/432989/is-it-better-to-redirect-users-who-attempt-to-perform-actions-they-cant-yet-tak?cb=1) (Is it better to redirect users who attempt to perform actions they can't yet take?) Is it better to redirect users who attempt to perform actions they can't yet... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing Linked (https://stackoverflow.com/q/13894386?lq=1) (Question score (upvotes - downvotes)) 63 (https://stackoverflow.com/questions/13894386/upstream-too-big-nginx-codeigniter?noredirect=1&lq=1) Upstream too big - nginx + codeigniter (https://stackoverflow.com/q/23732147?lq=1) (Question score (upvotes - downvotes)) 32 (https://stackoverflow.com/questions/23732147/configuring-nginx-for-large-uris?noredirect=1&lq=1) Configuring Nginx for large URIs (https://stackoverflow.com/q/40426157?lq=1) (Question score (upvotes - downvotes)) 8 (https://stackoverflow.com/questions/40426157/nginx-url-limit-502-gateway?noredirect=1&lq=1) Nginx url limit 502 gateway (https://stackoverflow.com/q/27361529?lq=1) (Question score (upvotes - downvotes)) 6 (https://stackoverflow.com/questions/27361529/nginx-returns-empty-response-on-long-url-failed-neterr-empty-response?noredirect=1&lq=1) Nginx returns empty response on long URL - (failed) net::ERR_EMPTY_RESPONSE (https://stackoverflow.com/q/64565060?lq=1) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/64565060/what-is-the-maximum-length-for-a-github-pages-uri?noredirect=1&lq=1) What is the maximum length for a GitHub Pages URI? (https://stackoverflow.com/q/40215176?lq=1) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/40215176/nginx-response-414-uri-too-long-even-with-very-large-large-client-header-buffers?noredirect=1&lq=1) Nginx response 414 URI Too Long even with very large large_client_header_buffers setting (https://stackoverflow.com/q/35875579?lq=1) (Question score (upvotes - downvotes)) -1 (https://stackoverflow.com/questions/35875579/jquery-ajax-doesnt-send-data-in-post-petition?noredirect=1&lq=1) jQuery Ajax doesn't send data in POST petition (https://stackoverflow.com/q/73490239?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/73490239/414-error-request-uri-too-large-through-postman?noredirect=1&lq=1) 414 Error Request - URI too Large Through Postman (https://stackoverflow.com/q/67433003?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/67433003/how-to-configure-nginx-conf-files-on-azure-app-services?noredirect=1&lq=1) How to configure Nginx .conf files on Azure App Services (https://stackoverflow.com/q/62267167?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/62267167/laravel-homestead-site-cant-be-reached-when-query-string-length-exceeds-5564-c?noredirect=1&lq=1) Laravel homestead - site cant be reached when query string length exceeds 5564 chars? (https://stackoverflow.com/questions/linked/1067334?lq=1) See more linked questions Related (https://stackoverflow.com/q/2891574?rq=3) (Question score (upvotes - downvotes)) 129 (https://stackoverflow.com/questions/2891574/how-do-i-resolve-a-http-414-request-uri-too-long-error?rq=3) How do I resolve a HTTP 414 "Request URI too long" error? (https://stackoverflow.com/q/3053258?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/3053258/xmlhttprequest-request-uri-too-large-414?rq=3) XMLHttpRequest Request URI too large (414) (https://stackoverflow.com/q/25771404?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/25771404/the-remote-server-returned-an-error-414-request-uri-too-long?rq=3) the remote server returned an error 414 request uri too long (https://stackoverflow.com/q/27168805?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/27168805/413-request-entity-too-large-nginx?rq=3) 413 Request Entity Too Large nginx (https://stackoverflow.com/q/34971014?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/34971014/nginx-413-request-entity-too-large?rq=3) Nginx: 413 Request Entity Too Large (https://stackoverflow.com/q/36994828?rq=3) (Question score (upvotes - downvotes)) 46 (https://stackoverflow.com/questions/36994828/413-request-entity-too-large-nginx-django?rq=3) 413 Request Entity Too Large nginx django (https://stackoverflow.com/q/40139681?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/40139681/nginx-413-request-entity-too-largeclient-intended-to-send-too-large-body?rq=3) nginx 413 Request Entity Too Large(client intended to send too large body) (https://stackoverflow.com/q/43182944?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/43182944/nginx-413-request-entity-too-large?rq=3) nginx / 413 Request Entity Too Large (https://stackoverflow.com/q/66929579?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/66929579/django-nginx-413-request-entity-too-large?rq=3) Django nginx 413 Request Entity Too Large (https://stackoverflow.com/q/69244766?rq=3) (Question score (upvotes - downvotes)) 15 (https://stackoverflow.com/questions/69244766/nginx-giving-out-a-413-request-entity-too-large?rq=3) Nginx giving out a 413 Request entity too large (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/739740/non-transient-physical-homogenous-solutions) Non transient physical homogenous solutions? (Code Golf Stack Exchange) (https://codegolf.stackexchange.com/questions/278346/tips-for-golfing-in-bespoke) Tips for golfing in Bespoke (Proof Assistants Stack Exchange) (https://proofassistants.stackexchange.com/questions/4759/in-lean-4-why-and-how-do-certain-definitions-need-axioms-and-others-dont) In Lean 4, why and how do certain definitions need axioms, and others don't? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295079/story-identification-man-kills-alien-who-is-in-great-pain-aliens-make-him-amba) Story identification: man kills alien who is in great pain. Aliens make him ambassador (Blender Stack Exchange) (https://blender.stackexchange.com/questions/331547/how-to-make-part-of-one-mesh-follow-a-copy-of-the-mesh-that-has-a-softbody-modfi) How to make part of one mesh follow a copy of the mesh that has a softbody modfier (Skeptics Stack Exchange) (https://skeptics.stackexchange.com/questions/57716/did-the-national-institutes-of-health-spend-over-300-000-to-study-whether-quail) Did the National Institutes of Health spend over $300,000 to study whether quails got more frisky after being fed cocaine? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/739716/is-an-ideal-transformer-with-unloaded-secondary-equivalent-to-an-ideal-inductor) Is an ideal transformer with unloaded secondary equivalent to an ideal inductor? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/216965/should-my-paper-cite-my-own-personal-blog-if-the-paper-is-based-on-preliminary-w) Should my paper cite my own personal blog if the paper is based on preliminary work originally published on the blog? (Aviation Stack Exchange) (https://aviation.stackexchange.com/questions/108044/whats-is-the-drag-on-a-sphere-as-a-function-of-speed) What's is the drag on a sphere as a function of speed? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5038334/example-of-a-group-which-has-2-elements-of-order-3-but-their-product-is-of-orde) Example of a group which has 2 elements of order 3, but their product is of order 2, if such exists (Travel Stack Exchange) (https://travel.stackexchange.com/questions/193464/schengen-visa-overstay-and-renewal) Schengen Visa overstay and renewal (Academia Stack Exchange) (https://academia.stackexchange.com/questions/216967/when-submitting-to-a-journal-should-i-explain-how-i-handled-comments-from-submi) When submitting to a journal, should I explain how I handled comments from submissions to different journals? (MathOverflow) (https://mathoverflow.net/questions/488331/a-general-inequality-about-integral) A general inequality about integral (Information Security Stack Exchange) (https://security.stackexchange.com/questions/280639/how-are-users-traced-via-their-ip-when-isps-use-nat) How are users traced via their IP when ISPs use NAT? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/737678/how-to-get-over-line-with-round-corners) How to get over line with round corners? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295103/what-was-the-first-sff-movie-to-influence-later-books-in-the-same-franchise) What was the first SFF movie to influence later books in the same franchise? (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/67945/could-india-possibly-deflect-the-asteroid-2024-yr4) Could India possibly deflect the asteroid 2024 YR4? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295060/avengers-endgame-did-the-hulk-recover-from-the-snap) Avengers Endgame: Did the Hulk recover from the "snap"? (Android Enthusiasts Stack Exchange) (https://android.stackexchange.com/questions/259780/how-to-export-recorder-audio-files-to-pc-via-usb-while-staying-offline) How to export Recorder audio files to PC via USB while staying offline? (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/31312/c-recursion-and-the-hp-1000) C, recursion and the HP-1000 (Information Security Stack Exchange) (https://security.stackexchange.com/questions/280632/is-there-a-way-to-secure-cryptographic-key-storage-on-windows-against-malware) Is there a way to secure cryptographic key storage on Windows against malware? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/122949/how-does-transcendental-philosophy-solve-the-problem-of-objective-validity) How does transcendental philosophy solve the problem of objective validity? (Super User) (https://superuser.com/questions/1882243/how-can-i-know-if-my-windows-computer-is-connected-to-a-physical-display) How can I know if my Windows computer is connected to a physical display? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/843644/does-a-larmor-precessing-spin-radiate-a-changing-magnetic-field) Does a Larmor precessing spin radiate a changing magnetic field? (/feeds/question/1067334) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/1067334) () (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Cookie Settings (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.2.21.22958 By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy) Cookie Policy . Accept all cookies Necessary cookies only Customize settings