PSGIããã«ã¦ã§ã¢ãå©ç¨ãã PSGIããã«ã¦ã§ã¢ã¯ã¢ããªã±ã¼ã·ã§ã³ã¨åæ§ã«ã³ã¼ããªãã¡ã¬ã³ã¹ã¨ãã¦å®è£ ããã¾ããããã¡ãã¡.psgiãã¡ã¤ã«ã«è¨è¿°ããã®ã¯ãã¾ãå¹çãè¯ãããã¾ããããåå©ç¨æ§ãããã¾ãããããã§Plackã«ã¯ããã«ã¦ã§ã¢ãã¢ã¸ã¥ã¼ã«ã¨ãã¦å©ç¨ããããã®ãã¼ã¹ã¯ã©ã¹Plack::Middlewareãããããå©ç¨ãã¦å®è£ ãããå種ããã«ã¦ã§ã¢ãå梱ããã¦ãã¾ã[2]â ã ããã§ã¯ããããã®ããã«ã¦ã§ã¢ãå©ç¨ãã¦å ã»ã©ã®Tatsumakiã¢ããªã±ã¼ã·ã§ã³ãæ¡å¼µãã¦ã¿ã¾ãããã Auth::Basic PSGIã¢ããªã±ã¼ã·ã§ã³ã«ç°¡åãªHTTPèªè¨¼æ©è½ãä»ããããã«ã¦ã§ã¢ãAuth::Basicã§ãã容æã«æ¡å¼µã§ããã³ã¼ã«ããã¯ã¤ã³ã¿ãã§ã¼ã¹ãæã£ã¦ããããããã¼ã¿ãã¼ã¹ãLDAPï¼Lightweight Directory Access Protocolï¼ãªã©ã¨ã®é£æºãã§ã
Plackââ âPSGIã¦ã¼ãã£ãªã㣠PSGIã®ãããã§ããã¬ã¼ã ã¯ã¼ã¯ã¯CGIãFastCGIãmod_perlã¨ãã£ãç°å¢ã®å·®ç°ãå¸åããããã®ã³ã¼ããæ¸ãå¿ è¦ã¯ãªããªããPSGIã®ã¤ã³ã¿ãã§ã¼ã¹ã ããå®è¡ããã°ãããªãã¾ãããå®éã«å¤ãã®ãã¬ã¼ã ã¯ã¼ã¯ããã§ã«PSGIããµãã¼ããã¦ãã¾ããããã¦ãããããã¢ããªã±ã¼ã·ã§ã³ãã©ããã£ã¦åããã°ããã®ã§ããããã Apacheãªã©æ¢åã®Webãµã¼ãã§PSGIã¢ããªã±ã¼ã·ã§ã³ãåããã«ã¯ãCGIãFastCGIãmod_perlãªã©ã®ã¤ã³ã¿ãã§ã¼ã¹ãPSGIã«å¤æããå¿ è¦ãããã¾ããã¾ããPSGIããã¤ãã£ãã§å®è¡ã§ããPerlãã¼ã¹ã®HTTPãµã¼ããã»ããã¨ããã§ãã Plackã¯ããããè¦ä»¶ãæºããããã®ã¦ã¼ãã£ãªãã£ã§ããªãã¡ã¬ã³ã¹å®è£ ã¨ãã¦ã®PSGIãµã¼ãããããã¸ã®ã¢ããã¿ãå¨è¾ºã©ã¤ãã©ãªãå¾è¿°ããããã«ã¦ã§ã¢ãå«ã¾ãã¦ãã¾ãã
æ¬é£è¼ã§ã¯ã第ä¸ç·ã®Perlããã«ã¼ãåæ¿ããã§å·çãã¦ããã¾ããè¨å¿µãã¹ã第1åã¯ãWEB+DB PRESSæ¬èªã§ã¯Vol.2ããå·çãã¦ãããé·ããé£è¼ãæ å½ãã¦ããå®®å·é彦ããã§ãã ã¯ããã« Perlã§Webéçºãããããã®ãã¬ã¼ã ã¯ã¼ã¯ã¯ç¾è±ç¹ä¹±ã人æ°ãéãã¦ãã¾ããæ¬ç¨¿ã§ã¯ããããã®ãã¬ã¼ã ã¯ã¼ã¯ãå ±éãã¦å©ç¨ããããã®ã¤ã³ã¿ãã§ã¼ã¹ä»æ§ã§ããPSGIã¨ããã®ã¨ã³ã¸ã³ã¨ãã¦ã®å®è£ ã§ããPlackãç´¹ä»ãã¾ãã PSGIã«è³ãé Perlã¨Webã¢ããªã±ã¼ã·ã§ã³éçºã®è¦ªåæ§ Perlã¯ãã¤ã³ã¿ã¼ãããã®ã°ã«ã¼ï¼ç³ï¼ã®ãï¼è¨èªãã¨ãè¨ãããCGIã«ããéçºãã¡ã¤ã³ã ã£ã1990年代ãããWebã¢ããªã±ã¼ã·ã§ã³éçºã«æãé¢ããã®ããããã°ã©ãã³ã°è¨èªã®ä¸ã¤ã¨è¨ã£ã¦ããã§ãããã2000年代ã«å ¥ã£ã¦ããRuby on RailsãPHPãªã©ã®ä»è¨èªããã®å½±é¿ãåãå ¥ããªãããWebéçº
The document discusses various web application frameworks and deployment methods in Perl. It covers common frameworks like CGI, mod_perl, Catalyst, and PSGI. It then discusses running PSGI applications with plackup, configuring middleware, and deploying PSGI apps behind web servers or as standalone daemons. Finally, it briefly covers application deployment and management with tools like daemontool
PSGI/Plackåå¼·ä¼ãéãã¾ãã(ã²ã¨ãã§)ãè³æã¯GitHubã«ããã¦ããã¾ããããããã¾ã¨ãæ¸ã足ãã¦ãªãã®ã§ãããèªåçã«ã¯ç´å¾ããã®ã§æºè¶³ãã¦ãã¾ãã¾ããã http://github.com/kentaro/psgi-study 以ä¸ã«ãã³ããã PSGI/Plackã¨ã¯ï¼ PSGI = Perl Web Server Gateway Interface Specification Webãµã¼ãã¨Webã¢ããªã±ã¼ã·ã§ã³ã¨ã®éã®ã¤ã³ã¿ãã§ã¤ã¹ä»æ§ Plack = PSGIã®ãªãã¡ã¬ã³ã¹å®è£ PSGIå®è£ ã®ã²ã¨ã¤(ã¨ã¯ããããããæ°åãã®å ¥ã£ãæãã«ãªã£ã¦ããã©) PSGI != Yet Another WAF PSGI != Plack PSGIçå®ã®èæ¯ åWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ããã©ãã©ã«å®è£ ãã¦ãããWebãµã¼ãã¨Webã¢ããªã±ã¼ã·ã§ã³ã¨ã®ã¤ã³ã¿ãã§ã¤ã¹ã
Superglue interface between perl web application frameworks and web servers, just like Perl is the duct tape of the internet. PSGI is an interface between Perl web applications and web servers, and Plack is a Perl module and toolkit that contains PSGI middleware, helpers and adapters to web servers. PSGI and Plack are inspired by Python's WSGI and Ruby's Rack. Documentation PSGI specification Freq
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}