{"id":703,"date":"2015-04-15T07:38:22","date_gmt":"2015-04-15T16:38:22","guid":{"rendered":"http:\/\/blog.box.kr\/?p=703"},"modified":"2015-04-15T07:38:22","modified_gmt":"2015-04-15T16:38:22","slug":"nginx-tomcat%ec%9c%bc%eb%a1%9c-virtual-host-%ea%b5%ac%ec%84%b1-%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=703","title":{"rendered":"NGINX , TOMCAT\uc73c\ub85c Virtual Host \uad6c\uc131 \ud558\uae30"},"content":{"rendered":"<p>1. NGINX \uc758 \uae30\uc874 \ub514\ub809\ud1a0\ub9ac\uc778 \/etc\/nginx\/config.d\/ \ud558\uc704\uc5d0 \uc0ac\uc6a9\ud560 \ub3c4\uba54\uc77c \ubcc4\ub85c *.conf\uc744 \uc0dd\uc131 \ud55c\ub2e4.<\/p>\n<p>2. \ub0b4\uc6a9\uc740 \ud558\uae30\uc640 \uac19\uc774 \ud55c\ub2e4.<\/p>\n<blockquote>\n<div class=\"line alt1\">server {<br \/>\nlisten 80;<br \/>\nserver_name www.aaaa.com;<br \/>\nlocation \/ {<br \/>\nproxy_pass http:\/\/127.0.0.1:(\uc5f4\ub9acPORT \ubcf4\ud1b5 8080);<br \/>\n}<br \/>\n}\n<\/div>\n<\/blockquote>\n<div class=\"line alt1\">3. \ub9cc\uc57d \ud2b9\uc815 \ub514\ub809\ud1a0\ub9ac\ubcc4\ub85c TOMCAT\uc11c\ubc84\ub97c \ub098\ub20c\ub54c\ub294 \uc544\ub798\uc640 \uac19\uc774 \uc14b\ud305 \ud55c\ub2e4.\n<\/div>\n<blockquote>\n<div class=\"line alt1\">server {<br \/>\nlisten 80;<br \/>\nserver_name www.aaaa.com;\n<\/div>\n<div class=\"line alt1\">\u00a0 \u00a0 \u00a0 rewrite_log\u00a0 on;\n<\/div>\n<div class=\"line alt1\"><span style=\"color: #ff0000;\"><strong><code class=\"plain\">\u00a0 \u00a0rewrite\u00a0\u00a0 ^\/(.*)$\u00a0\u00a0 \/sub_url\/$<\/code><code class=\"value\">1<\/code><code class=\"plain\">;<\/code><\/strong><\/span><br \/>\nlocation \/ {<br \/>\nproxy_pass http:\/\/127.0.0.1:(\uc5f4\ub9acPORT \ubcf4\ud1b5 8080);<br \/>\n}<br \/>\n}\n<\/div>\n<\/blockquote>\n<div class=\"line alt1\">\n<\/div>\n<div class=\"line alt1\">fin.\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. NGINX \uc758 \uae30\uc874 \ub514\ub809\ud1a0\ub9ac\uc778 \/etc\/nginx\/config.d\/ \ud558\uc704\uc5d0 \uc0ac\uc6a9\ud560 \ub3c4\uba54\uc77c \ubcc4\ub85c *.conf\uc744 \uc0dd\uc131 \ud55c\ub2e4. 2. \ub0b4\uc6a9\uc740 \ud558\uae30\uc640 \uac19\uc774 \ud55c\ub2e4. server { listen 80; server_name www.aaaa.com; location \/ { proxy_pass http:\/\/127.0.0.1:(\uc5f4\ub9acPORT \ubcf4\ud1b5 8080); } } 3. \ub9cc\uc57d \ud2b9\uc815 \ub514\ub809\ud1a0\ub9ac\ubcc4\ub85c TOMCAT\uc11c\ubc84\ub97c \ub098\ub20c\ub54c\ub294 \uc544\ub798\uc640 \uac19\uc774 \uc14b\ud305 \ud55c\ub2e4. server { listen 80; server_name www.aaaa.com; \u00a0 \u00a0 \u00a0 rewrite_log\u00a0 on; \u00a0 \u00a0rewrite\u00a0\u00a0 ^\/(.*)$\u00a0\u00a0 \/sub_url\/$1; location \/ { proxy_pass http:\/\/127.0.0.1:(\uc5f4\ub9acPORT \ubcf4\ud1b5 8080); } } fin.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-bl","jetpack-related-posts":[{"id":762,"url":"https:\/\/blog.box.kr\/?p=762","url_meta":{"origin":703,"position":0},"title":"Install and configure Nginx, MariaDB &amp; PHP-FPM in CentOS 7 (RHEL7)","date":"2015-05-08","format":false,"excerpt":"https:\/\/stavrovski.net\/blog\/install-and-configure-nginx-mariadb-php-fpm-in-centos-7-rhel7 \u00a0 The following is a quick-N-dirty write-up on\u00a0how to install and configure the LEMP stack (Nginx, MariaDB and PHP-FPM) in\u00a0CentOS 7. I use this as a reference\/guide whenever I need to deploy the\u00a0LEMP stack\u00a0on RHEL based machines. TABLE OF CONTENTS Enable EPEL Repository Update CentOS 7 Install and configure\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":758,"url":"https:\/\/blog.box.kr\/?p=758","url_meta":{"origin":703,"position":1},"title":"NGINX : FcgiExample","date":"2015-05-08","format":false,"excerpt":"FastCGI Example First thing, I recommend keeping all your typical FCGI settings in a single file and importing them. For example you might have an \/etc\/nginx\/fastcgi.conf (or \/etc\/nginx\/fastcgi_params: installed by default on debian) file that looks like this: #fastcgi.conf fastcgi_param GATEWAY_INTERFACE CGI\/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":760,"url":"https:\/\/blog.box.kr\/?p=760","url_meta":{"origin":703,"position":2},"title":"[\ubcf4\uc548&#124;\uc124\uc815]nginx .php$ \ubb38\uc81c \ubc0f apache \ud658\uacbd\ubcc0\uc218 \uc138\ud305","date":"2015-05-08","format":false,"excerpt":"location ~ .php($|\/) {\u00a0 include \/etc\/nginx\/fastcgi_params;\u00a0 fastcgi_pass unix:\/var\/run\/nginx\/php-fcgi.socket;\u00a0 fastcgi_index index.php;\u00a0 }\u00a0 index index.html index.php;\u00a0 \uc694\ub7f0\uc2dd\uc73c\ub85c \uc138\ud305\ud558\uba74 \uc544\ud30c\uce58\uc5d0\uc11c \ucc98\ub7fc a.php\/a\/b\/c \ud615\uc2dd\uc758 \uc2e4\ud589\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4.\u00a0 \uc544\ub798\uc758 \uc138\ud305\uc744 \uc801\uc6a9\ud558\uba74\u00a0 http:\/\/phpschool.com\/gnuboard4\/bbs\/board.php?bo_table=qna_install&wr_id=98096\u00a0 \uc694 \ubcf4\uc548\ubb38\uc81c\uac00 \ud574\uacb0\ub429\ub2c8\ub2e4.\u00a0 filename: \/etc\/nginx\/fastcgi_params\u00a0 fastcgi_param\u00a0 QUERY_STRING\u00a0 \u00a0 \u00a0 $query_string;\u00a0 fastcgi_param\u00a0 REQUEST_METHOD\u00a0 \u00a0 $request_method;\u00a0 fastcgi_param\u00a0 CONTENT_TYPE\u00a0 \u00a0 \u00a0 $content_type;\u00a0 fastcgi_param\u00a0 CONTENT_LENGTH\u00a0 \u00a0 $content_length;\u00a0 set\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":718,"url":"https:\/\/blog.box.kr\/?p=718","url_meta":{"origin":703,"position":3},"title":"How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7","date":"2015-04-15","format":false,"excerpt":"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7 \u00a0 How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7 Introduction A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":750,"url":"https:\/\/blog.box.kr\/?p=750","url_meta":{"origin":703,"position":4},"title":"NGINX: SELinux Changes when Upgrading to RHEL 6.6 \/ CentOS 6.6","date":"2015-05-08","format":false,"excerpt":"If you upgrade a running system to Red Hat Enterprise Linux (RHEL) 6.6 or CentOS 6.6, the Security Enhanced Linux (SELinux) security permissions that apply to NGINX are\u00a0relabelled to a much stricter posture. Although the permissions are adequate for the default configuration of NGINX, configuration for additional features can be\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":766,"url":"https:\/\/blog.box.kr\/?p=766","url_meta":{"origin":703,"position":5},"title":"install bugzilla with nginx on centos7","date":"2015-05-11","format":false,"excerpt":"Set the Hostname Before you begin installing and configuring the components described in this guide, please make sure you\u2019ve followed our instructions for setting your hostname. Issue the following commands to make sure it is set properly: hostname hostname -f The first command should show your short hostname, and the\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/703"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=703"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}