{"id":2291,"date":"2021-04-02T07:22:13","date_gmt":"2021-04-01T22:22:13","guid":{"rendered":"http:\/\/blog.anyons.net\/?p=2291"},"modified":"2022-07-12T14:42:58","modified_gmt":"2022-07-12T05:42:58","slug":"nginx-%ec%9d%b4%ec%a4%91%ed%99%94","status":"publish","type":"post","link":"https:\/\/anyons.net\/?p=2291","title":{"rendered":"NginX \uc774\uc911\ud654"},"content":{"rendered":"\n<pre class=\"lang:apache decode:true\">upstream myserver {\n\t# \uae30\ubcf8 round robin\n\tserver localhost:3000;\n\tserver localhost:3001;\n}\n\nserver {\n\tlisten 8080;\n\tlisten [::]:8080;\n\n\t# server_name xxx.anyons.net;\n\troot \/nodejsPath;\n\n\tlocation \/ {\n\t\tallow 192.168.1.0\/24;\n\t\tdeny all;\n\t\t# First attempt to serve request as file, then\n\t\t# as directory, then fall back to displaying a 404.\n\t\t# try_files $uri $uri\/ =404;\n\t\ttry_files $uri @myserver;\n\t}\n\n\tlocation @myserver {\n\t\tproxy_redirect off;\n\t\tproxy_http_version 1.1;\n\t\tproxy_pass http:\/\/myserver;\n\t\tproxy_set_header X-Real-IP $remote_addr;\n\t\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\t\tproxy_set_header Host $host;\n\t\tproxy_set_header X-NginX-Proxy true;\n\t\t# proxy_redirect http:\/\/myserver http:\/\/$server_name;\n\t}\n}<\/pre>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p> upstream myserver { # \uae30\ubcf8 round robin server localhost:3000; server localhost:3001; } server { listen 8080; listen [::]:8080; # server_name xxx.anyons.net; root \/nodejsPath; location \/ { allow 192.168.1.0\/24; deny all; # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $uri $uri\/ =404; [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[94,165],"tags":[443,349,444,445],"class_list":["post-2291","post","type-post","status-publish","format-standard","hentry","category-configuration","category-system","tag-nginx","tag-nodejs","tag-reverse-proxy","tag-round-robin","odd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NginX \uc774\uc911\ud654 - anydragon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anyons.net\/?p=2291\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NginX \uc774\uc911\ud654 - anydragon\" \/>\n<meta property=\"og:description\" content=\"upstream myserver { # \uae30\ubcf8 round robin server localhost:3000; server localhost:3001; } server { listen 8080; listen [::]:8080; # server_name xxx.anyons.net; root \/nodejsPath; location \/ { allow 192.168.1.0\/24; deny all; # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $uri $uri\/ =404; [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anyons.net\/?p=2291\" \/>\n<meta property=\"og:site_name\" content=\"anydragon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-01T22:22:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-12T05:42:58+00:00\" \/>\n<meta name=\"author\" content=\"anydragon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@anydragon\" \/>\n<meta name=\"twitter:site\" content=\"@anydragon\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"anydragon\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2291#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2291\"},\"author\":{\"name\":\"anydragon\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"headline\":\"NginX \uc774\uc911\ud654\",\"datePublished\":\"2021-04-01T22:22:13+00:00\",\"dateModified\":\"2022-07-12T05:42:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2291\"},\"wordCount\":1,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"keywords\":[\"nginx\",\"nodejs\",\"reverse proxy\",\"round robin\"],\"articleSection\":[\"Configuration\",\"System\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=2291#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2291\",\"url\":\"https:\\\/\\\/anyons.net\\\/?p=2291\",\"name\":\"NginX \uc774\uc911\ud654 - anydragon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\"},\"datePublished\":\"2021-04-01T22:22:13+00:00\",\"dateModified\":\"2022-07-12T05:42:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2291#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=2291\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2291#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/anyons.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NginX \uc774\uc911\ud654\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\",\"url\":\"https:\\\/\\\/anyons.net\\\/\",\"name\":\"anydragon\",\"description\":\"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang\",\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/anyons.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\",\"name\":\"anydragon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"url\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"contentUrl\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"width\":2560,\"height\":1440,\"caption\":\"anydragon\"},\"logo\":{\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\"},\"sameAs\":[\"http:\\\/\\\/anyons.net\",\"https:\\\/\\\/www.facebook.com\\\/anydragon\",\"https:\\\/\\\/x.com\\\/anydragon\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCr78KWpvmk398vPfpUTWNLg\"],\"url\":\"https:\\\/\\\/anyons.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NginX \uc774\uc911\ud654 - anydragon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anyons.net\/?p=2291","og_locale":"ko_KR","og_type":"article","og_title":"NginX \uc774\uc911\ud654 - anydragon","og_description":"upstream myserver { # \uae30\ubcf8 round robin server localhost:3000; server localhost:3001; } server { listen 8080; listen [::]:8080; # server_name xxx.anyons.net; root \/nodejsPath; location \/ { allow 192.168.1.0\/24; deny all; # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $uri $uri\/ =404; [...]","og_url":"https:\/\/anyons.net\/?p=2291","og_site_name":"anydragon","article_publisher":"https:\/\/www.facebook.com\/anydragon","article_author":"https:\/\/www.facebook.com\/anydragon","article_published_time":"2021-04-01T22:22:13+00:00","article_modified_time":"2022-07-12T05:42:58+00:00","author":"anydragon","twitter_card":"summary_large_image","twitter_creator":"@anydragon","twitter_site":"@anydragon","twitter_misc":{"\uae00\uc4f4\uc774":"anydragon"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anyons.net\/?p=2291#article","isPartOf":{"@id":"https:\/\/anyons.net\/?p=2291"},"author":{"name":"anydragon","@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"headline":"NginX \uc774\uc911\ud654","datePublished":"2021-04-01T22:22:13+00:00","dateModified":"2022-07-12T05:42:58+00:00","mainEntityOfPage":{"@id":"https:\/\/anyons.net\/?p=2291"},"wordCount":1,"commentCount":0,"publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"keywords":["nginx","nodejs","reverse proxy","round robin"],"articleSection":["Configuration","System"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anyons.net\/?p=2291#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anyons.net\/?p=2291","url":"https:\/\/anyons.net\/?p=2291","name":"NginX \uc774\uc911\ud654 - anydragon","isPartOf":{"@id":"https:\/\/anyons.net\/#website"},"datePublished":"2021-04-01T22:22:13+00:00","dateModified":"2022-07-12T05:42:58+00:00","breadcrumb":{"@id":"https:\/\/anyons.net\/?p=2291#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anyons.net\/?p=2291"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/anyons.net\/?p=2291#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anyons.net\/"},{"@type":"ListItem","position":2,"name":"NginX \uc774\uc911\ud654"}]},{"@type":"WebSite","@id":"https:\/\/anyons.net\/#website","url":"https:\/\/anyons.net\/","name":"anydragon","description":"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang","publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anyons.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":["Person","Organization"],"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b","name":"anydragon","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","url":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","contentUrl":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","width":2560,"height":1440,"caption":"anydragon"},"logo":{"@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg"},"sameAs":["http:\/\/anyons.net","https:\/\/www.facebook.com\/anydragon","https:\/\/x.com\/anydragon","https:\/\/www.youtube.com\/channel\/UCr78KWpvmk398vPfpUTWNLg"],"url":"https:\/\/anyons.net\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":2436,"url":"https:\/\/anyons.net\/?p=2436","url_meta":{"origin":2291,"position":0},"title":"SSH \ud130\ub110\ub9c1","author":"anydragon","date":"2021\ub144 07\uc6d4 21\uc77c","format":false,"excerpt":"ssh -v -N -L localhost:8080:localhost:8080 -L localhost:8081:localhost:8081 id@remote.anyons.net localhost (\uc55e\ucabd) : binding \ud560 \ud604\uc7ac \ucef4\ud4e8\ud130\uc758 8080 \ud3ec\ud2b8 localhost (\ub4a4\ucabd) : \ub9ac\ubaa8\ud2b8 \uc758 binding \uac00\ub2a5\ud55c 8080 \ud3ec\ud2b8 id@remote.anyons.net : ssh\ub85c \uc811\uc18d\ud560 server","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20,"url":"https:\/\/anyons.net\/?p=20","url_meta":{"origin":2291,"position":1},"title":"sql server \ubc31\uc5c5\uc744 \ud558\uac8c \ud558\uae30 \uc704\ud55c \uc2a4\ud06c\ub9bd\ud2b8","author":"anydragon","date":"2009\ub144 10\uc6d4 09\uc77c","format":false,"excerpt":"\"C:\\Program Files\\Microsoft SQL Server90\\Tools\\Binn\\sqlcmd\" -S localhost -i e:\\Backupbackup.sql \ud480\ubc31\uc5c5 declare @runtime nvarchar(10) declare @backupdevice nvarchar(100) declare @backupname nvarchar(100) set @runtime = substring(convert(nvarchar(20), getdate(), 8) ,1,2) set @backupdevice = N'e:\\Backupbackup_' + @runtime + N'.bak' set @backupname = N'backup_' + @runtime BACKUP DATABASE [TU] TO DISK = @backupdevice WITH NOFORMAT, INIT, NAME\u2026","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2576,"url":"https:\/\/anyons.net\/?p=2576","url_meta":{"origin":2291,"position":2},"title":"2021\ub144 6\uc6d4 \ub0b4\uac00 \uc124\uce58\ud55c vscode \ud655\uc7a5\ub4e4","author":"anydragon","date":"2022\ub144 06\uc6d4 14\uc77c","format":false,"excerpt":"\ucd5c\uadfc\uc5d0\ub294 asp.net core \uc5d0 \ud55c\uc815\ud574\uc11c \uac1c\ubc1c\uc744 \ud558\ub2e4\ubcf4\ub2c8 \ub300\ubd80\ubd84 Disable \ud558\uace0 \ud544\uc694\ud55c \uac83\ub9cc Enable \ud574\uc11c \uc0ac\uc6a9 \uc0ac\uc6a9\uc911 .NET Core Add Reference .NET Core Test Explorer .NET Install Tool for Extension Authors ASP.NET Core Switcher Auto Close Tag Auto Rename Tag Auto-Using for C# Bookmarks C# C# Namespace Autocompletion Code Spell Checker\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":18,"url":"https:\/\/anyons.net\/?p=18","url_meta":{"origin":2291,"position":3},"title":"OLE DB\ub85c oracle\uc774\uac74 MSSQL\uc774\uac74 \ub370\uc774\ud130\ub97c \uac00\uc838\uc624\uae30 \uc704\ud55c \uae30\ucd08 \ucf54\ub4dc","author":"anydragon","date":"2009\ub144 10\uc6d4 09\uc77c","format":false,"excerpt":"private OleDbDataReader rd; private OleDbConnection Conn; private string strRet; private OleDbCommand cmd; private StringBuilder sbSQL; private OleDbParameter paramnSeq; try { \/\/ SQLOLEDB MSDAORA Conn = new OleDbConnection(\"Provider=MSDAORA;Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.xxx )(PORT = 1521)))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = GROUP))); User Id =;\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15,"url":"https:\/\/anyons.net\/?p=15","url_meta":{"origin":2291,"position":4},"title":"ORACLE Connect Sample using DataAdapter without TNS","author":"anydragon","date":"2009\ub144 10\uc6d4 05\uc77c","format":false,"excerpt":"#region Using directives using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing; using System.Windows.Forms; #endregion namespace UsingADOManagedProvider { partial class ADONetForm1 : Form { public ADONetForm1( ) { InitializeComponent( ); \/\/ connect to Northwind Access database string connectionString = \"Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2589,"url":"https:\/\/anyons.net\/?p=2589","url_meta":{"origin":2291,"position":5},"title":"mac osx zsh neovim \ud658\uacbd\uc124\uc815","author":"anydragon","date":"2022\ub144 07\uc6d4 02\uc77c","format":false,"excerpt":"~\/.zshrc # Set name of the theme to load --- if set to \"random\", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes #ZSH_THEME=\"robbyrussell\" ZSH_THEME=\"agnoster\" # Uncomment the following line\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/2291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2291"}],"version-history":[{"count":0,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/2291\/revisions"}],"wp:attachment":[{"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}