ruby - Nginx Unknown directive "auth_request" - 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/64774920/nginx-unknown-directive-auth-request) (https://cdn.sstatic.net/Shared/stacks.css?v=d6a266655a25) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=22fb2cb11723) (Feed for question 'Nginx Unknown directive "auth_request"') (/feeds/question/64774920) (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 . (45fdb50b82cf09e3c22aa1697ef5a8ee0b8a220472cd062937b14b656f99cff0) (1) (2.0) Sign up with Google Sign up with GitHub OR (45fdb50b82cf09e3c22aa1697ef5a8ee0b8a220472cd062937b14b656f99cff0) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (45fdb50b82cf09e3c22aa1697ef5a8ee0b8a220472cd062937b14b656f99cff0) () 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%2f64774920%2fnginx-unknown-directive-auth-request) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f64774920%2fnginx-unknown-directive-auth-request) 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%2f64774920%2fnginx-unknown-directive-auth-request) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f64774920%2fnginx-unknown-directive-auth-request) 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 maven linq qt dictionary unit-testing asp.net-core facebook apache-spark tensorflow file swing class unity-game-engine sorting date authentication go symfony t-sql opencv 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 spring-mvc elasticsearch kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers google-sheets machine-learning c++11 security google-apps-script flask ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous web-scraping pdf 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 svg session hadoop intellij-idea curl rust django-models join winapi laravel-5 url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 logging dom swiftui web matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr encryption magento search stored-procedures amazon-ec2 ruby-on-rails-4 memory audio canvas multidimensional-array jsf random vector redux cookies input facebook-graph-api flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce azure-devops routes razor awk servlets mod-rewrite beautifulsoup excel-formula docker-compose filter iframe aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension 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 boost deep-learning sass import 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 makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split cmd mysqli encoding django-views automation database-design collections hash netbeans build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing java-8 react-redux jestjs html-table service neo4j lua ansible material-ui parameters enums module flexbox visual-studio-2012 promise outlook firebase-authentication webview web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive scipy tfs count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js powerbi rxjs constructor graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router solr nlp url-rewriting backbone.js memory-leaks datatables oauth terraform datagridview drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface angular-material google-api casting jmeter linked-list path proxy timer django-templates arduino orm directory parse-platform windows-phone-7 visual-studio-2015 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview gitlab visual-studio-2013 vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process rspec pygame properties combobox callback windows-phone-8 linux-kernel safari scrapy permissions raspberry-pi scripting emacs clojure x86 scope io compilation mongodb-query expo responsive-design nhibernate angularjs-directive azure-functions request bluetooth dns 3d binding reference architecture playframework discord.js pyqt version-control doctrine-orm package get rubygems sql-server-2012 f# autocomplete openssl datepicker kendo-ui tree jackson controller yii nested grep xamarin.ios static dockerfile statistics null transactions pycharm datagrid active-directory uiviewcontroller webforms phpmyadmin discord.py notifications sas computer-vision duplicates mocking youtube nullpointerexception yaml menu sum bitmap blazor asp.net-mvc-5 electron visual-studio-2008 time-series yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla cors navigation devise anaconda background camera multiprocessing pyqt5 binary cuda frontend linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose microsoft-graph-api android-asynctask tabs insert laravel-4 uicollectionview environment-variables amazon-dynamodb linker xsd console coldfusion upload continuous-integration ftp textview opengl-es vuejs3 operating-system mockito macros localization formatting xml-parsing json.net type-conversion kivy 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 fortran sprite-kit mfc attributes azure-pipelines nuxt.js nosql format nestjs odoo db2 jquery-plugins jenkins-pipeline leaflet event-handling flutter-layout annotations postman julia keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments synchronization xampp timezone crystal-reports dom-events azure-web-app-service uikit android-emulator wso2 swagger sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation webdriver centos snowflake-cloud-data-platform html5-canvas garbage-collection widget dialog numbers concatenation sql-update qml set tuples windows-10 mapreduce smtp java-stream ionic2 rotation modal-dialog spring-data android-edittext http-headers doctrine nuget radio-button sonarqube grid lucene xmlhttprequest internationalization listbox initialization switch-statement components google-play apache-camel boolean serial-port ldap ios5 gdb youtube-api return latex pivot eclipse-plugin frameworks tags containers github-actions dataset asp-classic subquery foreign-keys label c++17 copy uinavigationcontroller delegates google-cloud-storage struts2 migration base64 protractor embedded queue find sql-server-2008-r2 uibutton arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration tailwind-css airflow windows-7 r-markdown ssl-certificate vb6 gmail hover jqgrid g++ range udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/beta/discussions) Discussions Labs (https://chat.stackoverflow.com/?tab=all&sort=active) Chat (/users) Users (/jobs?source=so-left-nav) Jobs (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies 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 (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 (Illustration of upvote icon after it is clicked) Hang on, you can't downvote just yet. You'll need to complete a few actions and gain 125 reputation points before being able to downvote. Casting downvotes indicate issues with quality, effort, or accuracay of a post. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can try suggesting an edit to improve the post. Suggest edit No thanks (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/64774920/nginx-unknown-directive-auth-request) Nginx Unknown directive "auth_request" (/questions/ask) Ask Question (2020-11-10 18:46:09Z) Asked 4 years, 5 months ago Modified (?lastactivity) (2023-08-28 11:11:27Z) 1 year, 7 months ago (Viewed 1,869 times) Viewed 2k times This question shows research effort; it is useful and clear (70:3:31e,16:e53c71e1a9eb629b,10:1745380663,16:af0abfb62e028a15,8:64774920,94c660ef96df2209a1e4a8ac0f4898e4b9073c8680d0428584209f92228d6bbe) 1 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:c8f9aa090f5203e3,10:1745380663,16:af4c93bf43b6f246,8:64774920,baf8d6c53d867f140d5fa765847f50c0c5b1378f9d1f9252fb13a40194b67236) Save this question. (/posts/64774920/timeline) Show activity on this post. How to include this auth_request module to my custom nginx buildpack? This is my configuration: daemon off; # Heroku dynos have at least 4 cores. worker_processes <%= ENV ['NGINX_WORKERS' ] | | 4 %>; events { use epoll; accept_mutex on; worker_connections <%= ENV ['NGINX_WORKER_CONNECTIONS' ] | | 1024 %>; } http { gzip on; gzip_comp_level 2 ; gzip_min_length 512 ; server_tokens off; log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id' ; access_log <%= ENV ['NGINX_ACCESS_LOG_PATH' ] | | 'logs/nginx/access.log' %> l2met; error_log <%= ENV ['NGINX_ERROR_LOG_PATH' ] | | 'logs/nginx/error.log' %>; include mime.types; default_type application/octet-stream; sendfile on; # Must read the body in 5 seconds. client_body_timeout 5 ; upstream app_server { server unix: /tmp/nginx.socket fail_timeout=0 ; } server { listen <%= ENV ["PORT" ] %>; server_name _; keepalive_timeout 5 ; location / { auth_request /_oauth2_token_introspection; proxy_pass http: //my_backend; } location / _oauth2_send_request { internal; proxy_method POST ; proxy_set_header Authorization "Bearer SecretForOAuthServer" ; proxy_set_header Content -Type "application/x-www-form-urlencoded" ; proxy_set_body "token=$http_apikey&token_hint=access_token" ; proxy_pass https: //idp.example.com/oauth /token/introspect ; } } } I have added the --with-http_auth_request_module in my build_nginx file at /configure: #!/bin/bash # Build NGINX and modules for Heroku. # This script is designed to run in a Heroku Stack Docker # image. More information on the Heroku Stack can be found # at https://devcenter.heroku.com/articles/stack NGINX_VERSION =${ NGINX_VERSION -1.18 .0 } PCRE_VERSION =${ PCRE_VERSION -8.44 } HEADERS_MORE_VERSION =${ HEADERS_MORE_VERSION -0.33 } ZLIB_VERSION =${ ZLIB_VERSION -1.2 .11 } UUID4_VERSION =${ UUID4_VERSION -master} nginx_tarball_url=https: //nginx.org/download /nginx-${NGINX_VERSION}.tar.gz pcre_tarball_url=https:/ /ftp.pcre.org/pub /pcre/pcre -${ PCRE_VERSION }.tar.gz headers_more_nginx_module_url=https: //github.com/openresty /headers-more-nginx-module/archive /v${HEADERS_MORE_VERSION}.tar.gz uuid4_url=https:/ /github.com/cybozu /nginx-uuid4-module/archive /${UUID4_VERSION}.tar.gz zlib_url=http:/ /zlib.net/zlib -${ ZLIB_VERSION }.tar.gz temp_dir=$( mktemp -d /tmp/nginx.XXXXXXXXXX ) cd $temp_dir echo "Temp dir: $temp_dir" echo "Downloading $nginx_tarball_url" curl -L $nginx_tarball_url |tar xzv echo "Downloading $pcre_tarball_url" (cd nginx-${NGINX_VERSION} && curl -L $pcre_tarball_url | tar xvz ) echo "Downloading $headers_more_nginx_module_url" (cd nginx-${ NGINX_VERSION } && curl -L $headers_more_nginx_module_url |tar xvz ) echo "Downloading $zlib_url" (cd nginx-${NGINX_VERSION} && curl -L $zlib_url | tar xvz ) echo "Downloading $uuid4_url" (cd nginx-${ NGINX_VERSION } && curl -L $uuid4_url |tar xvz ) # This will build `nginx` ( cd nginx-${NGINX_VERSION} ./configure \ --with-pcre=pcre-${PCRE_VERSION} \ --with-zlib=zlib-${ZLIB_VERSION} \ --with-http_gzip_static_module \ --with-http_realip_module \ --with-http_ssl_module \ --with-http_auth_request_module \ --prefix=/tmp/nginx \ --add-module =${temp_dir}/nginx-${NGINX_VERSION}/headers-more-nginx-module -${HEADERS_MORE_VERSION} \ --add-module =${temp_dir}/nginx-${NGINX_VERSION}/nginx-uuid4-module -${UUID4_VERSION} make install ) # This will build `nginx-debug` ( cd nginx-${NGINX_VERSION} ./configure \ --with-debug \ --with-pcre=pcre-${PCRE_VERSION} \ --with-zlib=zlib-${ZLIB_VERSION} \ --with-http_gzip_static_module \ --with-http_auth_request_module \ --with-http_realip_module \ --with-http_ssl_module \ --prefix=/tmp/nginx-debug \ --add-module =${temp_dir}/nginx-${NGINX_VERSION}/headers-more-nginx-module -${HEADERS_MORE_VERSION} \ --add-module =${temp_dir}/nginx-${NGINX_VERSION}/nginx-uuid4-module -${UUID4_VERSION} make install ) release_dir=$(mktemp -d /tmp/nginx.XXXXXXXXXX) cp /tmp/nginx/sbin/nginx $release_dir/nginx cp /tmp/nginx-debug/sbin/nginx $release_dir/nginx-debug cp /tmp/nginx/conf/mime.types $release_dir/mime.types tar -zcvf /tmp/nginx-"${STACK}".tgz -C $release_dir . cp /tmp/nginx-"${STACK}".tgz $1 Regardless the error still persists: nginx: [emerg] unknown directive "auth_request" (/questions/tagged/ruby) (show questions tagged 'ruby') ruby (/questions/tagged/nginx) (show questions tagged 'nginx') nginx (/questions/tagged/heroku) (show questions tagged 'heroku') heroku (/questions/tagged/buildpack) (show questions tagged 'buildpack') buildpack (/q/64774920) (Short permalink to this question) Share Share a link to this question 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/64774920/edit) () Improve this question Follow (70:3:31e,16:2a689932a6b99df5,10:1745380663,16:99da767346c5d9ad,8:64774920,edc7f18dee48b545f5e33c3e09b8ecf4b08dce003ece57beb1195414daedb4a8) Follow this question to receive notifications asked (2020-11-10 18:46:09Z) Nov 10, 2020 at 18:46 (/users/6287214/gustavo) (Gustavo's user avatar) (/users/6287214/gustavo) Gustavo Gustavo (reputation score) 3,811 (7 gold badges) 7 7 gold badges (29 silver badges) 29 29 silver badges (44 bronze badges) 44 44 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) 2 Answers 2 Sorted by: (/questions/64774920/nginx-unknown-directive-auth-request?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 (70:3:31e,16:b0e4fc9e85dcbf25,10:1745380663,16:42e272203a64cf38,8:64968739,e015b6307121baf6b79345e17f22b223ae29c65ececdc758b6fbf8f1abda5652) 1 (This answer is not useful) (70:3:31e,16:0c8486f57aa6d5a7,10:1745380663,16:d0390a56b0f2241a,8:64968739,72645426bbd0294a972e0116d589ac94565275e86906ce387b836d4adde47161) Save this answer. (Loading when this answer was accepted…) (/posts/64968739/timeline) Show activity on this post. I think this sounds like you might have nginx installed somewhere else, and its in your PATH? I had this same problem today and this was the issue. (/a/64968739) (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/64968739/edit) () Improve this answer Follow (70:3:31e,16:56940efc80490a5d,10:1745380663,16:2ff2c93e07f8a6d5,8:64968739,9a8a25256c1972de494c8e7d299a6fb1e7ae12de2b054b4aace47edea806cec6) Follow this answer to receive notifications answered (2020-11-23 12:47:42Z) Nov 23, 2020 at 12:47 user1363990user1363990 (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:8a901b3b7a196eaf,10:1745380663,16:df34c6748b608e73,8:76992129,f78461650fb27870014493760058f686b8c64c8a9cfa7e0aa085377014db9ad7) 0 (This answer is not useful) (70:3:31e,16:5f56c180716d7837,10:1745380663,16:1210175daf94ca16,8:76992129,4c8c87bbd9325ee61fc07243ac9d4ccec4909fd34e3f874f8407f058ce5dfaa5) Save this answer. (Loading when this answer was accepted…) (/posts/76992129/timeline) Show activity on this post. (https://github.com/heroku/heroku-buildpack-nginx/) nginx buildpack includes three .tgz archives (nginx-heroku-18.tgz , nginx-heroku-20.tgz and nginx-heroku-22.tgz ) with compiled versions of nginx for 3 supported Heroku stacks. The buildpack doesn't download and compile nginx when buildpack is compiled, it just extracts nginx binaries from one of these .tgz archives. So the script scripts/build_nginx that you have modified is not run when buildpack is compiled. You need to run make on your machine to run this script. Makefile included in the repo will run the script three times within proper Docker images for the three Heroku stacks and build new .tgz archives, that can be then pushed to your custom buildpack repo. (/a/76992129) (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/76992129/edit) () Improve this answer Follow (70:3:31e,16:eff7c2174e9afa65,10:1745380663,16:6975c67da0dbae01,8:76992129,2a5068868071703dead8aa9a72499801c0ee797b1a988cc1ffd543fe34f833cd) Follow this answer to receive notifications (/posts/76992129/revisions) (show all edits to this post) edited (2023-08-28 11:11:27Z) Aug 28, 2023 at 11:11 answered (2023-08-28 10:45:59Z) Aug 28, 2023 at 10:45 (/users/1031601/jan-wrobel) (Jan Wrobel's user avatar) (/users/1031601/jan-wrobel) Jan Wrobel Jan Wrobel (reputation score) 7,119 (3 gold badges) 3 3 gold badges (42 silver badges) 42 42 silver badges (57 bronze badges) 57 57 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) (64774920) (false) () (0) Your Answer (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 (45fdb50b82cf09e3c22aa1697ef5a8ee0b8a220472cd062937b14b656f99cff0) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f64774920%2fnginx-unknown-directive-auth-request%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) Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/ruby) (show questions tagged 'ruby') ruby (/questions/tagged/nginx) (show questions tagged 'nginx') nginx (/questions/tagged/heroku) (show questions tagged 'heroku') heroku (/questions/tagged/buildpack) (show questions tagged 'buildpack') buildpack See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/04/18/generating-components-not-tokens/?cb=1) Generating components, not tokens (https://stackoverflow.blog/2025/04/22/visually-orchestrating-data-diagnostics-but-platform-agnostic/?cb=1) Visually orchestrating data diagnostics but platform agnostic Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407927/changes-to-reporting-for-the-status-review-escalation-process?cb=1) Changes to reporting for the [status-review] escalation process (Meta Stack Exchange) (https://meta.stackexchange.com/questions/408408/results-of-the-march-2025-community-asks-sprint?cb=1) Results of the March 2025 Community Asks Sprint (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/433641/what-we-learned-about-follow-up-questions-and-whats-next?cb=1) What We Learned About Follow-up Questions and What's Next Related (https://stackoverflow.com/q/1513208?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/1513208/authlogic-throws-errors-on-heroku?rq=3) Authlogic throws errors on Heroku (https://stackoverflow.com/q/1997582?rq=3) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/1997582/authlogic-throwing-errors-on-heroku?rq=3) Authlogic throwing errors on Heroku (https://stackoverflow.com/q/7987673?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/7987673/http-auth-rails-3-0-9?rq=3) http auth rails 3.0.9 (https://stackoverflow.com/q/22904959?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/22904959/failing-to-enable-user-env-compile-on-heroku?rq=3) failing to enable user-env-compile on Heroku (https://stackoverflow.com/q/28436877?rq=3) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/28436877/heroku-error-enoent-stat-app-build-index-html?rq=3) heroku Error: ENOENT, stat '/app/build/index.html' (https://stackoverflow.com/q/28956500?rq=3) (Question score (upvotes - downvotes)) 6 (https://stackoverflow.com/questions/28956500/laravel-nginx-conf-with-official-heroku-php-buildpack?rq=3) Laravel nginx.conf with official Heroku php buildpack? (https://stackoverflow.com/q/37333765?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/37333765/heroku-local-http-directive-is-duplicate?rq=3) Heroku Local: "http" directive is duplicate (https://stackoverflow.com/q/39067404?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/39067404/buildpacks-is-not-a-heroku-command?rq=3) `buildpacks` is not a heroku command (https://stackoverflow.com/q/45625184?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/45625184/heroku-bundler-failed-to-load-command-unicorn?rq=3) Heroku - bundler: failed to load command: unicorn (https://stackoverflow.com/q/64791831?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/64791831/how-to-deploy-the-heroku-nginx-buildpack-using-the-new-buildpacks-io-framework?rq=3) How to deploy the heroku nginx buildpack using the new buildpacks.io framework? (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/296161/a-short-story-where-an-inventor-makes-a-shield-from-perforated-paper) A short story where an inventor makes a shield from perforated paper (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/744494/is-my-op-amp-circuit-analysis-correct) Is my Op-Amp circuit analysis correct? (Arqade) (https://gaming.stackexchange.com/questions/411919/what-games-does-balatro-reference-in-the-custom-face-cards) What games does Balatro reference in the custom face cards? (Web Applications Stack Exchange) (https://webapps.stackexchange.com/questions/181157/why-the-function-doesnt-get-called) Why the function doesn't get called? (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/31602/what-do-these-labels-mnemonics-mean-on-mitsumi-d539w-dual-3-5-5-25-floppy) What do these labels/mnemonics mean on Mitsumi D539W dual (3.5" + 5.25") floppy drive jumpers? (Code Golf Stack Exchange) (https://codegolf.stackexchange.com/questions/279240/conversion-between-cesu-8-and-utf-8) Conversion between CESU-8 and UTF-8 (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/744403/lightning-protection-for-landscape-lighting) Lightning protection for landscape lighting (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/124467/how-can-objective-morality-exist-in-christianity) How can objective morality exist in Christianity? (3D Printing Stack Exchange) (https://3dprinting.stackexchange.com/questions/24077/edit-gcode-in-octoprint-to-adjust-temperature) Edit gcode in Octoprint to adjust temperature (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/215327/im-running-my-first-session-of-5e-for-a-level-1-party-please-review-my-prep-th) I'm running my first session of 5e for a level 1 party. Please review my prep thus far (MathOverflow) (https://mathoverflow.net/questions/491493/preperiod-of-powers-of-matrices-modulo-m) Preperiod of powers of matrices modulo m (Music: Practice & Theory Stack Exchange) (https://music.stackexchange.com/questions/139488/as-compression-is-about-making-sounds-quieter-why-do-people-say-use-it-to-make) As compression is about making sounds quieter, why do people say use it to make tracks louder? (Stack Overflow) (https://stackoverflow.com/questions/79586663/why-is-the-unit-type-treated-in-a-special-way-in-kotlin) Why is the Unit type treated in a special way in Kotlin? (Law Stack Exchange) (https://law.stackexchange.com/questions/108386/in-what-circumstances-could-some-of-your-dms-be-forcibly-disclosed-to-a-plaintif) In what circumstances could some of your DMs be forcibly disclosed to a plaintiff? (Geographic Information Systems Stack Exchange) (https://gis.stackexchange.com/questions/492034/points-from-layer-in-polar-projection-disappear-when-zooming-out-in-qgis) Points from layer in polar projection disappear when zooming out in QGIS (Academia Stack Exchange) (https://academia.stackexchange.com/questions/218062/can-i-publish-a-peer-review-that-i-received-on-one-of-my-proposals) Can I publish a peer-review that I received on one of my proposals? (MathOverflow) (https://mathoverflow.net/questions/491454/why-is-it-so-difficult-to-define-constructive-cardinality) Why is it so difficult to define constructive cardinality? (Cross Validated) (https://stats.stackexchange.com/questions/664458/why-is-r%c2%b2-not-equal-to-the-square-of-pearsons-correlation-coefficient-r%c2%b2-in-m) Why is R² not equal to the square of Pearson's correlation coefficient (r²) in my multivariate regression model? (Solana Stack Exchange) (https://solana.stackexchange.com/questions/21664/why-is-the-same-commit-of-an-anchor-repo-giving-different-results-when-run-at-di) Why is the same commit of an Anchor repo giving different results when run at different times? (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/317147/fully-tighten-adjustable-wrench-locking-pliers) Fully tighten adjustable wrench locking pliers (Aviation Stack Exchange) (https://aviation.stackexchange.com/questions/108433/looking-to-understand-the-physics-of-heading-change-with-roll) Looking to understand the physics of heading change with roll (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/31607/did-the-akiko-have-any-other-developer-useable-features-than-chunky-to-planar) Did the Akiko have any other developer-useable features than Chunky-to-planar? (Literature Stack Exchange) (https://literature.stackexchange.com/questions/29135/what-does-agai-mean-in-aitmatovs-to-have-and-to-lose) What does "agai" mean in Aitmatov's "To Have and to Lose"? (Music: Practice & Theory Stack Exchange) (https://music.stackexchange.com/questions/139485/is-this-too-high-for-a-french-horn-college-level) Is this too high for a French horn (college level)? (/feeds/question/64774920) (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/64774920) () lang-rb (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 Your Privacy Choices (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.4.22.25414