nginx: [emerg] unknown directive "match", why does it appear? - 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/74650639/nginx-emerg-unknown-directive-match-why-does-it-appear) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=cc49ce762956) (Feed for question 'nginx: [emerg] unknown directive "match", why does it appear?') (/feeds/question/74650639) (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%2f74650639%2fnginx-emerg-unknown-directive-match-why-does-it-appear) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74650639%2fnginx-emerg-unknown-directive-match-why-does-it-appear) 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%2f74650639%2fnginx-emerg-unknown-directive-match-why-does-it-appear) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f74650639%2fnginx-emerg-unknown-directive-match-why-does-it-appear) 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 security google-sheets 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 iis cocoa 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 installation grails sharepoint cmake spring-security shiny jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed websocket bootstrap-4 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 pytorch axios terminal pip split mysqli cmd encoding django-views automation database-design netbeans collections hash build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency command-line spring-data-jpa entity-framework-core printing java-8 react-redux jestjs service html-table neo4j ansible lua parameters material-ui module 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 graphql powerbi constructor rxjs file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr backbone.js url-rewriting datatables memory-leaks oauth datagridview drupal terraform oracle11g zend-framework neural-network knockout.js django-forms triggers interface google-api angular-material casting jmeter linked-list proxy path timer django-templates arduino orm directory parse-platform cron visual-studio-2015 windows-phone-7 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 binding azure-functions reference discord.js architecture playframework pyqt version-control doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree jackson controller 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 css-selectors android-listview 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 laravel-4 insert amazon-dynamodb uicollectionview environment-variables linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system mockito vuejs3 localization 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 postman event-handling flutter-layout annotations julia keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports timezone azure-web-app-service android-emulator dom-events swagger uikit wso2 sequelize.js aggregation-framework namespaces uiscrollview jvm chart.js google-sheets-formula com subprocess geolocation centos webdriver html5-canvas widget dialog garbage-collection numbers concatenation snowflake-cloud-data-platform sql-update qml windows-10 set mapreduce smtp tuples ionic2 java-stream rotation modal-dialog android-edittext spring-data http-headers radio-button nuget doctrine 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 queue sql-server-2008-r2 find uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide popup entity-framework-6 iteration windows-7 airflow r-markdown ssl-certificate vb6 gmail jqgrid hover udp g++ tailwind-css 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 (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/74650639/nginx-emerg-unknown-directive-match-why-does-it-appear) nginx: [emerg] unknown directive "match", why does it appear? (/questions/ask) Ask Question (2022-12-02 03:38:50Z) Asked 2 years, 2 months ago Modified (?lastactivity) (2023-05-24 08:55:58Z) 1 year, 9 months ago (Viewed 741 times) Viewed 741 times This question shows research effort; it is useful and clear (70:3:31e,16:8a19d4d8da6d1e47,10:1740032418,16:b52e19551b22cf2d,8:74650639,9468f4cbed444654580a13dce9126f7e98d15e837c040e020df0d82872f61473) 0 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:f57ee4b8e4a91566,10:1740032418,16:d7d5945b33e43a56,8:74650639,b5fd8c51bd6afd51c1bc76c9bfd3aab5edbb0eabfb52ad699a4c95afdb973383) Save this question. (/posts/74650639/timeline) Show activity on this post. this is my config (https://i.sstatic.net/3wArZ.png) enter image description here log_format mqtt '$remote_addr [$time_local] $protocol $status $bytes_received ' '$bytes_sent $upstream_addr'; upstream hive_mq { server 192.168.11.200:1883; #node1 server 127.0.0.1:1883; #node2 zone tcp_mem 64k; } match mqtt_conn { # Send CONNECT packet with client ID "nginx health check" send \x10\x20\x00\x06\x4d\x51\x49\x73\x64\x70\x03\x02\x00\x3c\x00\x12\x6e\x67\x69\x6e\x78\x20\x68\x65\x61\x6c\x74\x68\x20\x63\x68\x65\x63\x6b; expect \x20\x02\x00\x00; # Entire payload of CONNACK packet } server { listen 8081; proxy_pass hive_mq; proxy_connect_timeout 1s; health_check match=mqtt_conn; access_log /var/log/nginx/mqtt_access.log mqtt; error_log /var/log/nginx/mqtt_error.log; # Health check notifications } but when I reload the setting and it return failed as following (https://i.sstatic.net/v8xVL.png) enter image description here nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/nginx.service.d └─php-fpm.conf Active: failed (Result: exit-code) since Fri 2022-12-02 03:20:49 UTC; 2s ago Process: 51793 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS) Process: 51821 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE) Process: 51819 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS) Main PID: 51794 (code=killed, signal=KILL) Dec 02 03:20:49 localhost systemd[1]: Starting The nginx HTTP and reverse proxy server... Dec 02 03:20:49 localhost nginx[51821]: nginx: [emerg] unknown directive "match" in /etc/nginx/nginx.conf:171 Dec 02 03:20:49 localhost nginx[51821]: nginx: configuration file /etc/nginx/nginx.conf test failed Dec 02 03:20:49 localhost systemd[1]: nginx.service: Control process exited, code=exited status=1 Dec 02 03:20:49 localhost systemd[1]: nginx.service: Failed with result 'exit-code'. Dec 02 03:20:49 localhost systemd[1]: Failed to start The nginx HTTP and reverse proxy server. noted I have include modules/*.conf and the modules are (https://i.sstatic.net/D4VQp.png) enter image description here Do I miss someting? How to address the config problem in Nginx? (/questions/tagged/nginx) (show questions tagged 'nginx') nginx (/q/74650639) (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/74650639/edit) () Improve this question Follow (70:3:31e,16:3f61d86af20f15a8,10:1740032418,16:f9b8a121332b48ca,8:74650639,69b62ebd24bbdab8769a58e04dd1734451c80187fb8fd306a0f18fc1b4b3106b) Follow this question to receive notifications asked (2022-12-02 03:38:50Z) Dec 2, 2022 at 3:38 (/users/19314484/puncheung-tong) (puncheung tong's user avatar) (/users/19314484/puncheung-tong) puncheung tong puncheung tong (reputation score) 1 (1 bronze badge) 1 1 bronze badge 1 Are you using the commercial version of Nginx or the free version? – (/users/4862445/richard-smith) (49,742 reputation) Richard Smith Commented (2022-12-02 10:21:23Z, License: CC BY-SA 4.0) Dec 2, 2022 at 10:21 (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) 1 Answer 1 Sorted by: (/questions/74650639/nginx-emerg-unknown-directive-match-why-does-it-appear?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:cb0377c508849784,10:1740032418,16:c05c53ff1b07c6cd,8:76321539,2dfe77e3461b9fa5d69be461c9244fb441e65bb2345b28ea4c0a4fcae6dbc5f7) 0 (This answer is not useful) (70:3:31e,16:394ac2c6c740f5c9,10:1740032418,16:ff1cffce94a94294,8:76321539,f2e898ad846607ab32085c10bb69c63e8e3858260b659cf12adb7d39c507415c) Save this answer. (Loading when this answer was accepted…) (/posts/76321539/timeline) Show activity on this post. The Nginx commercial license does not allow adding this type of directive.I recommend to try with Nginx Plus. (/a/76321539) (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/76321539/edit) () Improve this answer Follow (70:3:31e,16:7977fbae17fd6808,10:1740032418,16:11a8635e52bdafbf,8:76321539,41bfe8bae8963af3d0917823c0ebde9a91562aaf81f5532fd32bdc3b300ae87c) Follow this answer to receive notifications (/posts/76321539/revisions) (show all edits to this post) edited (2023-05-24 08:55:58Z) May 24, 2023 at 8:55 (/users/7733418/yunnosch) (Yunnosch's user avatar) (/users/7733418/yunnosch) Yunnosch (reputation score 26,753) 26.8k (9 gold badges) 9 9 gold badges (44 silver badges) 44 44 silver badges (62 bronze badges) 62 62 bronze badges answered (2023-05-24 08:31:56Z) May 24, 2023 at 8:31 (/users/21952207/pedro) (Pedro's user avatar) (/users/21952207/pedro) Pedro Pedro (reputation score) 1 2 Welcome to Stack Overflow! Please phrase this as an explained conditional answer, in order to avoid the impression of asking a clarification question instead of answering (for which a comment should be used instead of an answer, compare (https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead) (why do i need 50 reputation to comment what can i do instead) meta.stackexchange.com/questions/214173/… ). For example like "If your problem is ... then the solution is to .... because .... ." I could not and only turned it into a much too brief "I recommend ..." answer. Better improve it. – (/users/7733418/yunnosch) (26,753 reputation) Yunnosch Commented (2023-05-24 08:54:48Z, License: CC BY-SA 4.0) May 24, 2023 at 8:54 (this comment was edited 1 time) Your answer does not really solve the author's problem. Please avoid putting such an answer. Instead, use a comment and THEN post an answer after the author accepted your "fact". – (/users/19270168/openwld) (916 reputation) openwld Commented (2023-05-24 12:38:20Z, License: CC BY-SA 4.0) May 24, 2023 at 12:38 (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) (74650639) (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%2f74650639%2fnginx-emerg-unknown-directive-match-why-does-it-appear%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 or (/questions/ask) ask your own question . The Overflow Blog (https://stackoverflow.blog/2025/02/18/why-is-it-so-hard-for-companies-to-protect-your-privacy/?cb=1) Why is it so hard for companies to protect your privacy? 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/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing (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... Related (https://stackoverflow.com/q/5308560?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/5308560/nginx-emerg-unknown-directive-set-in-usr-local-nginx-conf-nginx-conf43?rq=3) nginx: [emerg] unknown directive "set" in /usr/local/nginx/conf/nginx.conf:43 (https://stackoverflow.com/q/19165976?rq=3) (Question score (upvotes - downvotes)) 21 (https://stackoverflow.com/questions/19165976/nginx-emerg-unknown-directive-in-etc-nginx-sites-enabled-example-com3?rq=3) nginx: [emerg] unknown directive " " in /etc/nginx/sites-enabled/example.com:3 (https://stackoverflow.com/q/32589283?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/32589283/why-is-nginx-complaining-of-an-unknown-directive?rq=3) Why is nginx complaining of an unknown directive? (https://stackoverflow.com/q/41766195?rq=3) (Question score (upvotes - downvotes)) 235 (https://stackoverflow.com/questions/41766195/nginx-emerg-server-directive-is-not-allowed-here?rq=3) nginx: [emerg] "server" directive is not allowed here (https://stackoverflow.com/q/43643829?rq=3) (Question score (upvotes - downvotes)) 101 (https://stackoverflow.com/questions/43643829/nginx-emerg-http-directive-is-not-allowed-here-in-etc-nginx-sites-enabled?rq=3) nginx: [emerg] "http" directive is not allowed here in /etc/nginx/sites-enabled/default:1 (https://stackoverflow.com/q/46959229?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/46959229/nginx-emerg-unknown-log-format?rq=3) nginx: [emerg] unknown log format (https://stackoverflow.com/q/47999472?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/47999472/nginx-emerg-unknown-directive-absolute-redirect?rq=3) nginx: [emerg] unknown directive "absolute_redirect" (https://stackoverflow.com/q/49214000?rq=3) (Question score (upvotes - downvotes)) 6 (https://stackoverflow.com/questions/49214000/what-is-the-nginx-conf-error-directive-not-allowed-here?rq=3) What is the nginx.conf ERROR: 'directive not allowed here'? (https://stackoverflow.com/q/51133137?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/51133137/nginx-emerg-server-directive-is-not-allowed-here?rq=3) Nginx [emerg] "server" directive is not allowed here (https://stackoverflow.com/q/51709558?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/51709558/nginx-emerg-xxx-directive-is-duplicate-in-etc-nginx-conf-d-xxx-conf7?rq=3) nginx: [emerg] "XXX" directive is duplicate in /etc/nginx/conf.d/XXX.conf:7 (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/122848/if-our-memory-fails-how-can-we-be-sure-of-what-we-know) If our memory fails, how can we be sure of what we know? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/739424/zener-diodes-supposed-to-be-in-series-by-cathode-but-are-by-anode-should-i-flip) Zener diodes supposed to be in series by cathode but are by anode, should I flip them? (Stack Overflow) (https://stackoverflow.com/questions/79450679/remove-duplicates-across-multiple-vectors) Remove duplicates across multiple vectors (Personal Finance & Money Stack Exchange) (https://money.stackexchange.com/questions/165341/tax-implications-of-loyalty-card-discounts) Tax implications of loyalty card discounts (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/739385/why-is-the-esr-curve-of-c0g-mlcc-not-smooth-at-low-frequencies) Why is the ESR curve of C0G MLCC not smooth at low frequencies? (Server Fault) (https://serverfault.com/questions/1173174/how-can-i-force-osx-and-windows-11-clients-to-direct-dns-requests-to-a-local-ser) How can I force OSX and Windows 11 clients to direct dns requests to a local server rather than to the gateway? (Cross Validated) (https://stats.stackexchange.com/questions/661535/generalized-additive-mixed-model-zero-inflated-regression-with-nb-distritbuion-u) Generalized Additive Mixed Model Zero Inflated Regression with NB distritbuion using mgcv (Politics Stack Exchange) (https://politics.stackexchange.com/questions/90636/why-did-european-leaders-gather-in-paris-and-not-in-an-eu-structure-on-2025-02) Why did "European Leaders" gather in Paris and not in an EU structure on 2025-02-17? (The Workplace Stack Exchange) (https://workplace.stackexchange.com/questions/200352/fired-employee-helping-to-poach-other-employees) Fired employee helping to poach other employees (Code Golf Stack Exchange) (https://codegolf.stackexchange.com/questions/278263/snakes-on-a-2xn-grid) Snakes on a 2xN grid (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295034/does-gasoline-propel-the-delorean-to-88-mph-after-the-hover-conversion) Does gasoline propel the DeLorean to 88 mph after the hover conversion? (MathOverflow) (https://mathoverflow.net/questions/488109/does-the-dkw-inequality-make-machine-learning-trivial) Does the DKW Inequality Make Machine Learning Trivial? (Board & Card Games Stack Exchange) (https://boardgames.stackexchange.com/questions/61766/how-does-single-combat-handle-creatures-that-cant-be-sacrificed) How does Single Combat handle creatures that can't be sacrificed? (Information Security Stack Exchange) (https://security.stackexchange.com/questions/280592/how-can-i-ensure-that-my-git-projects-have-not-been-tampered-with) How can I ensure that my Git projects have not been tampered with? (Aviation Stack Exchange) (https://aviation.stackexchange.com/questions/108020/is-pilot-included-in-payload-available) Is pilot included in payload available? (The Workplace Stack Exchange) (https://workplace.stackexchange.com/questions/200331/can-my-organization-see-my-personal-info-on-my-work-computer) Can my organization see my personal info on my work computer? (English Language Learners Stack Exchange) (https://ell.stackexchange.com/questions/362370/what-do-the-occurrences-of-yet-mean-here) What do the occurrences of yet mean here? (Stack Overflow) (https://stackoverflow.com/questions/79452303/why-does-throwing-an-error-in-a-not-yet-awaited-async-function-call-terminate-no) Why does throwing an error in a not-yet-awaited async function call terminate node.js? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/264772/theoretically-in-an-apocalypse-scenario-what-is-the-best-way-to-amputate-an-inf) Theoretically, in an apocalypse scenario what is the best way to amputate an infected arm? (Law Stack Exchange) (https://law.stackexchange.com/questions/107427/is-use-of-gradients-background-images-legal) Is use of gradients background images legal? (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/214751/how-to-represent-characters-who-are-supposed-to-be-intimidating) How to represent characters who are supposed to be intimidating? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/264783/could-earth-plants-survive-on-a-planet-that-orbits-a-k-type-star) Could Earth plants survive on a planet that orbits a K-Type Star? (The Workplace Stack Exchange) (https://workplace.stackexchange.com/questions/200334/how-to-give-a-heads-up-to-people-from-a-different-company-that-the-ceo-of-the-co) How to give a heads up to people from a different company that the CEO of the company I work for has anger issues? (Cross Validated) (https://stats.stackexchange.com/questions/661575/odds-ratio-significant-but-predicted-probability-is-not) Odds Ratio Significant but Predicted Probability is Not (/feeds/question/74650639) (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/74650639) () (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.19.22863