WEBãµã¼ãNginxã«é¢ãã説æãapacheã¨ã®æ¯è¼ãã³ããã¼ã¯ãEC2ã§ã®ä½¿ç¨æ¹æ³ãªã©Read less
WEBãµã¼ãNginxã«é¢ãã説æãapacheã¨ã®æ¯è¼ãã³ããã¼ã¯ãEC2ã§ã®ä½¿ç¨æ¹æ³ãªã©Read less
ããã«ã¡ã¯ã@harukasanã§ãããã¯ã·ãã§ã¯3年以ä¸ã«ããã£ã¦HTTPãµã¼ãã«nginxãæ¡ç¨ãã¦ãã¾ãããããã®ãã¦ãã¦ãè©°ã¾ã£ããnginxå®è·µå ¥éãã1/16(å)ãæè¡è©è«ç¤¾ããçºå£²ããããã¨ã«ãªãã¾ããã ãã®è¨äºã§ã¯æ¬æ¸ãããã¯ã·ãã§è¯ã使ããã¦ããnginxã®ãã¯ããã¯ã«ã¤ãã¦ããã¤ã¾ãã§ç´¹ä»ãã¾ãã ãã¹ã¦ã®ãªã¯ã¨ã¹ããåãæ¢ããnginx ãã¯ã·ãã®ãããããããµã¼ãã¹ï¼pixivãpixiv Spotlightãpixivã³ããã¯ããã¯ã·ãç¾ç§äºå ¸â¦â¦ï¼ã®ã©ããã«HTTPãªã¯ã¨ã¹ããæããã¨ãè¤æ°å°ããããã³ããµã¼ãã®ã©ããã«å±ãã¾ããå®éã«ã¢ããªã±ã¼ã·ã§ã³ãå¦çããã®ã¯ããã³ããµã¼ãã®è£å´ã«ããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§ãããããã®ãµã¼ãã«ã¯PHPã ã£ãããRuby on Railsã ã£ããPlay/Scalaã ã£ããããããªã¢ããªã±ã¼ã·ã§ã³ããããã¤ããã¦ãã¾ã
@harukasanã¨å ±åã§ãnginxå®è·µå ¥éããå·çãã¾ããã2016å¹´1æ16æ¥çºå£²ã§ãã nginxå®è·µå ¥é (WEB+DB PRESS plus) ä½è : ä¹ ä¿é彦,éäºä¿ä»åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2016/01/16ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼ãã®ååãå«ãããã°ãè¦ã é»åæ¸ç±çãããã¾ãã gihyo.jp æ¬æ¸ã«ã¤ã㦠æ¬æ¸ã¯nginxã®å®è·µçãªå ¥éæ¸ã§ããnginxãã¯ããã¦å©ç¨ããæ¹ãæ¢ã«nginxãå©ç¨ãã¦ããããã©ãã£ã¨ä½¿ãããªãããã¨ããæ¹ã«åãã¦å®è·µçãªãã¦ãã¦ãæ°å¤ã解説ãã¦ãã¾ãã以ä¸ãæ¬æ¸ã®ç« æ§æã«ãªãã¾ãã 第1ç« nginxã®æ¦è¦ã¨ã¢ã¼ããã¯ã㣠第2ç« ã¤ã³ã¹ãã¼ã«ã¨èµ·å 第3ç« åºæ¬è¨å® 第4ç« éçãªWebãµã¤ãã®æ§ç¯ 第5ç« å®å ¨ãã¤é«éãªHTTPSãµã¼ãã®æ§ç¯ 第6ç« Webã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®æ§ç¯ 第7ç« å¤§è¦æ¨¡
ããã«ã¡ã¯ã ã¤ã³ãã©ãã¼ã ã®é島ï¼@nojimaï¼ã§ãã ãã¼ã ã®ã¡ã³ãã¼ã« nginx ã®è¨å®ã«ã¤ãã¦æ°ãã¤ããã¹ãç¹ãå ±æããããã«ãã¬ãã¥ã¼è¦³ç¹ãæ¸ãã¾ããã ãã£ãããªã®ã§ããã§å ¬éãã¾ãã ã»ã¨ãã©ã®é ç®ã¯èªåããã¼ã ã®ã¡ã³ãã¼ã®å®ä½é¨ã«åºãã¦ãã¾ãã ã¬ãã¥ã¼è¦³ç¹ server server_name ãä»ã®ãã¤ã¨è¢«ã£ã¦ããªããã listen ãã IP ã¢ãã¬ã¹ãåãå ´åãserver_name ã§åºå¥ã§ããªãã¨ãããªãã TLS ã使ãå ´åãSNI ããµãã¼ãããªãã¯ã©ã¤ã¢ã³ãã§ã¯ TLS ç¨ã®è¨å®ã default_server ã®ãã®ã使ãããç¹ã«ã注æã TLS ã使ãå ´åãlisten ãã£ã¬ã¯ãã£ãã« ssl ãªãã·ã§ã³ãæ¸ãã¦ãããã location location ã®ãããã®é çªã«æ³¨æ æ£è¦è¡¨ç¾ã® location ã¯åæ¹ä¸è´ã® location ãã
Improving web application performance is more critical than ever. The share of economic activity thatâs online is growing; more than 5% of the developed worldâs economy is now on the Internet (see Resources for Internet Statistics below). And our alwaysâon, hyperâconnected modern world means that user expectations are higher than ever. If your site does not respond instantly, or if your app does n
ã¯ããã« ããã«ã¡ã¯ãã¸ã£ã½ãã¨ã³ã¸ãã¢ã®kurashitaã§ãã ä»åã¯AWSä¸ã®EC2ã¤ã³ã¹ã¿ã³ã¹ã«Nginxã¨Unicornãã¤ã³ã¹ãã¼ã«ãã¦Railsã¢ããªã±ã¼ã·ã§ã³ãCapistrano ã§ãããã¤ããæã®æé ã¡ã¢ã§ãã ãªãåç¨èªã«ã¤ãã¦ã¯ãã°ã°ããã ããã ãµã¼ãã¯AWSã®EC2ãç¨æãã¦ããåæã§ãã 以ä¸ã®ä¸é£ã®è¨äºãé常ã«åèã«ãªãã¾ããã http://qiita.com/hiroshik1985/items/6433d5de97ac55fedfde EC2ä¸ã§ã®ã¤ã³ã¹ãã¼ã«ä½æ¥ ä»åã¯stagingç°å¢ã¨ãã¦æ§ç¯ãã¾ãã EC2ã« ec2-user 㧠ssh ãã°ã¤ã³ãã¾ãã git gitãã¤ã³ã¹ãã¼ã«ãã¾ãã sudo yum install git åããã±ã¼ã¸ åããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¾ãã sudo yum install gcc-c++ glibc
@shibuya.pm#17
ç°å¢æ§ç¯ æ®éã« Boot2Docker ãMacã«ã¤ã³ã¹ãã¼ã«ãã¾ãããBoot2Docker㯠ããã®ããã°ã®ä¸ã»ã©ã®ç»åã®ããã«VitualBoxä¸ã§Dockerãµã¼ãã¼ãåãããMacã® dockerã³ãã³ããDockerãµã¼ãã¼ã¨éä¿¡ãã¦åä½ãã¾ãã Dockerãµã¼ãã¼ã®ä½æã»èµ·åãªã©ã¯ boot2docker ã³ãã³ãã§è¡ãã¾ãã ä½æã»èµ·åã¯ã % boot2docker init % boot2docker up ããã§ãdockerã³ãã³ãã使ããããã«ãªãã¾ãããéä¿¡ç¨ã®DOCKER_HOSTç°å¢å¤æ°ãè¨å®ããå¿ è¦ãããã¾ãã % export DOCKER_HOST=tcp://192.168.59.103:2375 % docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE nginx latest c
ååã¤ã³ã¹ãã¼ã«ã¾ã§è¡ã£ãnginx + unicorn on ubuntuã ä»åã¯ãå®éã«è¨å®ãè¡ã£ã¦railsã¢ããªãåããã¨ããã¾ã§ã®ã¡ã¢ã§ãã nginxã®è¨å® ä»ã¾ã§apacheã使ã£ã¦ãã人ãçªç¶ãnginxã使ãã¨è²ã åæãéã£ã¦æ¸æããã¨ãå¤ãã¨æãã¾ãã èªåããã®1人ãªã®ã§ãããã§ç´¹ä»ããè¨å®ã¯ããã¾ã§ãèªå·±æµã¨ãããã¨ã§è§£éãã¦é ããã°ã¨æãã¾ãã ã¾ãã¯ãnginxã®å¤§å ã®ãã¡ã¤ã«ãç·¨éãã¾ãã $ vi /etc/nginx/nginx.conf ãããnginxã®å¤§å ãã¡ã¤ã«ã§ãã ããã§ã¯ã¾ããapacheæ代ã«æ £ã親ããã sites-availableã¨sites-enabledãnginxã§ãæ´»ç¨ãã¾ãã ãã ãapacheã¨ç°ãªããa2ensiteãªã©ã®ã³ãã³ãã§æå¹ã«ãªããã¨ã¯ãªãã§ãã ãã®ãããã«ãsites-availableã®ã¨ã¤ãªã¢ã¹ãsi
EasyRamble ã¯ãæè¡ãã¿ãåè²ã¦ãè±èªå¦ç¿ãã¢ã¦ããã¢ãªã©ã«ã¤ãã¦ç¶´ãããã°ã§ããRuby on Rails ã Swift ãªã©ã§ãWebãµã¼ãã¹/ã¢ããªãä½ã£ã¦ãã¾ãã
æè¡é¨ã®é´æ¨ (id:eagletmt) ã§ãã ã¯ãã¯ãããã§ã¯ä¸é¨ã® Web ã¢ããªã±ã¼ã·ã§ã³ãµã¼ã㧠Docker ã使ããã¦ãããä»åã¯ãã®ãããã¤æ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ãã Docker 㧠Web ã¢ããªã±ã¼ã·ã§ã³ããããã¤ããã¨ãã«ã¯ãã¾ã ã¾ã ãã¹ããã©ã¯ãã£ã¹ãããç¶æ³ã§ã¯ããã¾ããã ãã¨ãã°ãã©ã®ããã«ç¡åæ¢ã§ãããã¤ããããã©ã®ããã«ã³ã³ããã¨éä¿¡ãããã¨ãã£ãåé¡ãããã¾ãã æåã« Apache Mesos 㨠Marathon ãªã©ã®ãã¼ã«ãæ¤è¨¼ãã¾ããããã¯ãã¯ãããã®ç°å¢ã«ããã¦ä½¿ããããããªãã®ã¯ãªããæçµçã«èªåã§ãããã¤ã®ããã¿ãä½ããã¨ã«ãã¾ããã ããã Docker å¨è¾ºã®ãã¼ã«ã¯æ§ã ãªæ°ãããã®ãåºã¦ãã¦ããæä¸ã§ãã ä»ã¯ã¾ã ãã¹ããªãã®ãç¡ãããã©ããè¿ããã¡ã«ãããããã®ãåºã¦ããããããã¾ããã ãã®ãããã§ããã ãåç´ãªããã¿ã«ãã¦ãã
Nginxã§HTTPSï¼ã¼ãããå§ãã¦SSLã®è©ä¾¡ãA+ã«ããã¾ã§ Part 2 â è¨å®ãCiphersuiteãããã©ã¼ãã³ã¹ ä»æ¥ã®ã¤ã³ã¿ã¼ãããã®ä¸çã§ã¯ãä¸è¬çãªéçWebãµã¤ããå«ãã å ¨ã¦ã®Webãµã¤ã ã«ãå¼·åºã§å®å ¨ãªHTTPSã®ã»ããã¢ãããå¿ è¦ã¨ãªãã¾ãããã®è¨äºã¯ãNginxã»ãã¥ãªãã£ãã©ã®ããã«ã»ããã¢ããããã®ãã«é¢ããã·ãªã¼ãºã®ãã¼ã2ã§ãã ãã¼ã1 ã¯ãWebãµã¼ãã«æå¹ãªç½²å証ææ¸ãã»ããã¢ãããã話ã§çµäºãã¾ããããããããã«ã¯ãæé©ãªè¨å®ã¨ã¯è¨ãé£ããããã©ã«ãã®Nginxã®è¨å®ã使ç¨ãã¦ãã¾ããã ãã®è¨äºãèªã¿çµããã°ãSSL Labsã®ã¬ãã¼ãã§ãA+ã®è©ä¾¡ãç²å¾ã§ããå®å ¨ãªHTTPSã®è¨å®ãã§ãã¾ããããã ãã§ãªãã追å ã§ããã¤ãã®å¾®èª¿æ´ãè¡ããããã©ã¼ãã³ã¹ããã¦UXãåä¸ããã¦ããã¾ãã ããã«æ²è¼ããè¨è¿°ãã³ã¼ãã®æç²ã®ä»ã«ããããã«ä½¿
ãããVPS 2GB SSDã®CentOS 6.4ãã»ããã¢ãããã¦ã¤ã±ã¦ããRailsãµã¼ãã«ä»ä¸ããã¾ã§ã®ã·ãªã¼ãºã§ãã第5åã¯nginxã®å°å ¥ã§ããnginxã¯Apacheã¨æ¯ã¹ãã¨æ´å²ã¯æµ ãã§ããRailsã§ä½¿ãã®ãããªãã¡ã¸ã£ã¼ã«ãªã£ã¦ãã¾ãããããApacheã®æ¹ãã好ã¿ã®æ¹ã¯ãããVPS/Cent OS 6.4ã¸ã®Apacheå°å ¥ã試ãã¦ã¿ã¦ãã ããï¼ (07-10 20:30) ELBçµç±ã®nginxã§ã¯ã©ã¤ã¢ã³ãã®IPãåå¾ããæ¹æ³ã追è¨
ãç¥ãã
é害
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}