Generated on Wed Dec 14 2011 09:33:07 for Apache Portable Runtime by 1.7.5
Most modules need to offer system administrators and users some means of configuring and controlling them. In some cases, this is even the primary purpose of a module. System administrators configure Apache using httpd.conf, while end users have more limited control through .htaccess files. Modules give control to them by implementing configuration directives that can be used in these files. In th
訳ãã£ã¦ï¼Apacheã¢ã¸ã¥ã¼ã«ãæ¸ããã¨ã«ï¼ Apacheã¢ã¸ã¥ã¼ã«éçºã®å°å ¥ã«é¢ãã¦ã¯DSASéçºè ã®é¨å±:apache module éçºäºå§ãã大å¤åèã«ãªãã¾ããï¼ ããã§ã¯APR(Apache Portable Runtime)ã®æ©è½ã使ã£ã¦ï¼å ±æã¡ã¢ãªã使ãæ¹æ³ãæ¸ãã¾ãï¼ ãã®ã¢ã¸ã¥ã¼ã«ã¯Apacheï¼è¤æ°ããã»ã¹ï¼ãï¼ã¢ã¯ã»ã¹ãåããåæ°ãã¨ã©ã¼ãã°ã«åºåããã¨ããåç´ãªãã®ï¼ ãªãç°¡åã®ããã«ãã£ã¬ã¯ãã£ãã¯ä½¿ç¨ãã¾ããï¼(ï½·ï¾ï½¯ æä»å¶å¾¡ããã£ã¦ã¾ããï¼(ï½·ï¾ï½¯ ã§ãæä»å¶å¾¡ã¯ãã®ãã¡è§¦ãããï¼ ã§ã¯æ©éã½ã¼ã¹ãï¼ï¼ï¼ #include "httpd.h" #include "http_config.h" #include "http_protocol.h" #include "ap_config.h" #include "http_log.h" #include "
ååï¼Apacheã¢ã¸ã¥ã¼ã«ã§å ±æã¡ã¢ãªã使ãã«ã¯ - æ¿ç·çé£æ¥è¨ã§ä½ã£ãã¢ã¸ã¥ã¼ã«ã«æä»å¶å¾¡ã®æ©è½ã追å ãã¾ãï¼ ã¾ãï¼æ¬¡ã®äºã¤ã®ããããã¡ã¤ã«ã追å ãã¾ãï¼ #include "apr_global_mutex.h" #include "unixd.h" ServerConfigæ§é ä½ã«ï¼mutexã使ããã¡ã¤ã«ã®ååã¨ï¼mutexã®ã¢ãã¬ã¹ãæ ¼ç´ããã¡ã³ãã追å ãã¾ãï¼ typedef struct ServerConfig{ char *mutex_path; apr_global_mutex_t *mutex; char *shm_path; apr_shm_t *shm_data; int *access_count; }sconfig; post_configã¹ãã¼ã¸ã§create mutexãã¾ãï¼ //Create global mutex status = apr_g
Perlå ¥å¦å¼ å ¨6åã®Perlå ¥éè¬åº§ãæ±äº¬ã大éªãæ²ç¸ãæå¹ã§éå¬ã(æ±äº¬ã¯4æã¨10æã¹ã¿ã¼ãããã以å¤ã¯5æã¹ã¿ã¼ã) YAPC::Japan Perlã軸ã¨ããITã«é¢ããå ¨ã¦ã®äººã®ããã®ã«ã³ãã¡ã¬ã³ã¹ã æ±äº¬ å祥寺.pm äºåç°.pm å¤§éª ãªã«ãPerl æ²ç¸ æ²ç¸.pm
ãã®URLã®ãã¼ã¸ã¯è¡¨ç¤ºãããã¨ãåºæ¥ã¾ããã§ããã IQãµã¼ãã¼
Google ã® Page Speed ã® Apache module ç mod_pagespeed ãã¤ã³ã¹ãã¼ã«ãã¦ãã¡ãã£ã¨ã ãåããè¦ã¦ã¿ãã ã¤ã³ã¹ãã¼ã«ã¯ Ubuntu ã« deb ããã±ã¼ã¸ã§ã $ wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb # sudo dpkg -i mod-pagespeed-beta_current_amd64.debconfig ã¯ããã©ã«ãã§å ¥ããã®ãã®ã¾ã¾ã <IfModule pagespeed_module> SetOutputFilter MOD_PAGESPEED_OUTPUT_FILTER ModPagespeed on ModPagespeedUrlPrefix "http://localhost/mod_p
http://blog.nomadscafe.jp/2010/09/apachestartservers-minmaxspareservers-maxclients.html åã¯ããã®ãµã¼ãã¼ç®¡çè ãããªããã©(ãããããããããµã¼ãã¼ç®¡çã§ãéãããã£ã¦ããã¨ããªãã¯ãªãã®ã§ãã§ãå°æ¥ãããªãã)ãåã«ããã¨ãã°ãã¢ã¯ã»ã¹ãéä¸ããã¨ãã¨ãã« fork(2) ãçºè¡ããã¾ãã£ã¦éããªãã®ã§ãæåã£ãããã¡ããã¨ãããã¨ããçç±ã§ Min=Max æ´¾ã§ããã ãã¨ã¾ã httpd ãã¤ãããã¡ã¢ãªã®éãã©ããããã£ã¦ã®ã¯ããããã決ãã¦ããã¯ããªãã§ãMin ã«ããã¦ã±ããæå³ããªãããã¼ã¨ããã MinSpareServers!=MaxSpareServers ã«ããã®ã£ã¦æåã®é¢¨ç¿ãªããããªãããªã£ã¦ããã£ã¦ãã ã¨ããé§æã
This controls the directory to which Apache httpd attempts to switch before dumping core. If your operating system is configured to create core files in the working directory of the crashing process, CoreDumpDirectory is necessary to change working directory from the default ServerRoot directory, which should not be writable by the user the server runs as. If you want a core dump for debugging, yo
ããã«ã¡ã¯ãã¢ã·ã¢ã«ã®äºå·ã§ãã ä»æ¥ã¯Apacheã¢ã¸ã¥ã¼ã«éçºæ¹æ³ãç´¹ä»ãããã¨æãã¾ããé£ãããã«èãããããããã¾ããããApacheã®ãã¼ã«ï¼apxsï¼ã使ãã®ã§æå¤ã¨ç°¡åã«ä½æã§ãã¾ããã¾ããä»åä½æããã®ã¯"hello world"ãHTMLã®å é ã«å ããã ãã®ã·ã³ãã«ãªã¢ã¸ã¥ã¼ã«ã§ãã æ¬å½ã«ç°¡åãªã®ã§ããã²ä¸åº¦ä½ã£ã¦ã¿ã¦ä¸ããã éçºã®æµãã¯æ¬¡ã®éãã§ãã 0. éçºç°å¢ã®æºå 1. ã¢ã¸ã¥ã¼ã«ã®ã²ãªå½¢ã®ä½æ 2. ã³ã¼ãã®è¨è¿°ï¼Cè¨èªï¼ 3. ã³ã³ãã¤ã«ãã¦ã¤ã³ã¹ãã¼ã« 4. httpdã®åèµ·å éçºç°å¢ã¯æ¢ã«ã§ãã¦ããåæã§è©±ãé²ãã¾ããå¿ è¦ãªããã±ã¼ã¸ã¯ ã»httpd ã»httpd-devel ã»gcc ã§ãããæ¤è¨¼ç°å¢ã¯æ¬¡ã®éãã§ãã ã»CentOS 5.5 ã»Apache 2.2.3 ãã ããhttpdã«so_moduleãçµã¿è¾¼ã¾ãã¦ããå¿ è¦ãããã¾ãã次ã®ã³
ããã«ã¡ã¯ãéçºé¨ã®æ± éã§ãã æ¢ã«è²ããªã¨ããã§çºè¡¨ãã¦ãã¾ãããã©ã¤ããã¢ã§ã¯Webãµã¼ãã¨ãã¦æ®ãã©ã®ãµã¼ãã¹ã§Apacheã使ç¨ãã¦ãã¾ãã Apache ã®ç¹å¾´ã¨ãã¦ãã¢ã¸ã¥ã¼ã«ã«ããæ©è½ã®è¿½å ãæåã®å¶å¾¡ãããã¾ãããã®ä¸ã§ãããå©ç¨ããã¦ããªãããæ·±ã使ã£ã¦ããã¨ãããã©ãããè¬ã®æ©è½ã®å¤ãã¢ã¸ã¥ã¼ã«ã¨ã㦠mod_rewrite ãããã¾ããApacheã®å ¬å¼ãµã¤ãã§ã以ä¸ã®ããã«æ¸ããã¦ããäºããããæ¬å®¶ã§ããã®ç¹ã«ã¤ãã¦ã¯èªãã¦ããã¨ããäºã§ãããã ä»åã¯ãã㪠mod_rewrite ã®ã¡ãã£ã¨ããã¢ãã¯ãªæ¡å¼µæ¹æ³ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo. å¤æ°ãå©ç¨ããããã°ã©ã
Plack::Server::Standalone ç³»ã使ã£ã¦ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³éçºã¨éç¨ã楽ã«ãªã話 - JPerl Advent Calendar 2009 Perl ã«é¢ããã¡ãã£ã¨ãã Tips ãã®ã£ãã¦ã¿ãããã¡ããã¨ç¶ãããªï¼ æ¢åã®ç°å¢ã«å¯¾ããä¸æº Perl ã®ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãæ§ç¯ããã«ããã£ã¦ã¯ããªãã¼ã¹ãããã·ã¨ mod_perl ãçµã¿åãããããããã㯠FastCGI (ExternalServer) ãå©ç¨ããã®ãä¸è¬çã ã¨æãã¾ããããããã©ã¡ããã¨ã£ã¦ããç°å¢ãæ§ç¯ãã¦è¨å®ããã®ãé£ããã¨ããã®ãå人çãªä¸æºã§ãã (mod_redirect ãè¨å®ããã mod_fastcgi ã«ãããããã¦ã¦ã¤ã³ã¹ãã¼ã«ããã startup.pl ãæ¸ããã...)ãèªåã Plack ã®éçº (主㫠Server::Standalone 㨠Server
Debianã ã¨aptã§gem1.2.0ãå ¥ã£ãããã¦é¢åã ããã¦ãVMwareã ã¨ä»ã®ã¡ã¤ã³ãµã¼ãã¼ã§ã¯èµ·ãããªãã£ãã¨ã©ã¼ãã§ã¦orzestã ã£ãã®ã§Ubuntuã§ã Ubuntuã¤ã³ã¹ãã¼ã«æã«ãLAMPãã¨ãOpenSSHããé¸æããã ãã§ãä»ã¯ã¾ã£ãããªç¶æ ã§ãã ã¾ãããç´æã $ sudo aptitude update $ sudo aptitude upgrade Rubyã®ã¤ã³ã¹ãã¼ã« $ sudo aptitude install -y ruby gemã®ã¤ã³ã¹ãã¼ã«ã $ sudo aptitude install -y rubygems $ gem -v 1.3.5Debianã ã¨aptã§ã¯1.2.0ãå ¥ãã®ã§è²ã ã¨é¢åãããã ç¾å¨ã®ã¡ã¤ã³ãµã¼ãã¼ã§ã¯Debianã§1.3.5ã«ããããçµæ§å¤§å¤ã Ubuntuã¯ããã楽ãªã®ã§ããããRailsç°å¢ã¯Ubuntu
ãã£ã¨Apacheãç¥ããï¼ãã¾ããèããªã!? Webç³»éçºè ã®ããã®ãµã¼ãç¥èï¼2ï¼ï¼1/3 ãã¼ã¸ï¼ èªåèµ·åã®è¨å® 第1åãWebãµã¼ãããå§ããããã§æé ã追ã£ã¦è¨ç½®ãã/etc/rc.d/init.d/httpdã¨ããApacheã®å¶å¾¡ã¹ã¯ãªããã¯ãã·ã¹ãã èµ·åæã«ãããApacheã®èªåèµ·åã«å©ç¨ã§ãã¾ãã ä»åã¯ãLinuxã®ã·ã¹ãã èµ·åæã«å種ã®ãµã¼ãããã°ã©ã ãèªåçã«èµ·åãããæ¹æ³ããApacheãä¾ã«ç´¹ä»ãã¦ããã¾ãããã ã¾ãã/etc/rc.d/init.d/é ä¸ã«ããµã¼ãå¶å¾¡ã¹ã¯ãªãããè¨ç½®ãã¾ããå¶å¾¡ã¹ã¯ãªããã®å 容ã¯ãµã¼ãããã°ã©ã ã«ããç°ãªãã¾ãããå¤ãã®ããã±ã¼ã¸ã§ã¯ã¤ã³ã¹ãã¼ã«æã«èªåã§è¨ç½®ãããããã¾ãã¯ãµã³ãã«ãæä¾ããã¾ããä»åã®ä¾ã§ã¯ããã§ã«ç´¹ä»ããæé ã§/etc/rc.d/init.d/httpdãè¨ç½®æ¸ã¿ã§ãã 次ã«ã/etc/rc.d/
mod_rounded_cornersã¨ããè§ä¸¸ãçæããããã® Apacheã¢ã¸ã¥ã¼ã«(Apache2ç³»ç¨)ãä½ãã¾ããã ã¨ãããä¼ç¤¾ã®ãªããã®ãã¼ãã£ã³ã°ã§èª°ãã è¨ã£ã¦ãã®ã§åå¼·ãã¦ãä½ã£ã¦ã¿ãã http://github.com/yoshiki/mod_rounded_corners/tree/master ã¤ã³ã¹ãã¼ã«ã¯ä¸è¨ã®ããã«ããã°OKã % autoconf % ./configure % make # make install è¨å®ã¯httpd.confã« <VirtualHost *:80> ServerName rounded-corners.example.com <Loction /> SetHandler rounded-corners </Location> </VirtualHost> ã¦æãã§æ¸ãã°OKã ä»ã®ã¨ããã¯Locationãã/ã以å¤ã ã¨
é£é ã§ãã Webã·ã¹ãã ã®éçºããã¦ããã¨ãæ¥æ¿ãªã¢ã¯ã»ã¹å¢ã«åãããããããHTTPéä¿¡ã®å¸¯åãæ¥ç¶æ°ãå¶å¾¡ãããã¨ãããã¨ãããã¾ãã å æ¥ãApacheã§ä½¿ãããã©ãã£ãã¯å¶å¾¡ã¢ã¸ã¥ã¼ã«ã調ã¹ãæ©ä¼ããã£ãã®ã§ãã¾ã¨ãã¦ããããã¨æãã¾ãã Apache2.2ç³»ã§ä½¿ããã¢ã¸ã¥ã¼ã« Apache2.2ç³»ã§å©ç¨ã§ãããã©ãã£ãã¯å¶å¾¡ã¢ã¸ã¥ã¼ã«ã¯æ¬¡ã®ãããªãã®ãããã¾ãã mod_limitipconn mod_bwshare mod_bw(bw_mod) mod_dosdetector mod_cband mod_limitipconn 1IPããã®åææ¥ç¶æ°ãå¶éãããã¨ãã§ãã¾ãã DoS対çãåæãã¦ã³ãã¼ãé²æ¢ãªã©ã«ç¨ãããã¾ãã mod_bwshare 1ç§ãããã®1IPããã®åææ¥ç¶æ°ã¨å¸¯åãå¶éãããã¨ãã§ãã¾ãã DoS対çãåæãã¦ã³ãã¼ãé²æ¢ãªã©ã«ç¨ãããã¾ãã
ãµãã¨ã¯å½¼å¥³ã®èªå® è¿ããæ¹åå°é§ åã®ã¹ã¼ãã¼ãã¼ã±ããã§å¾ ã¡åãããããã彼女ã¯èªè»¢è»ã§å¾ãã追ãã¤ãã¨è¨ããåã¯å¤§ããªã³ã¤ã³ãã¼ãã³ã°ã¸è»ãåãããç èãä¸æ¬å¸ã£ã¦ããã¹ã¼ãã¼ãã¼ã±ããã¸åããã¨ãã²ã£ãããªãã«ä¸»å©¦çãªå¥³æ§ããã°ãã¡ãããå ¥ãå£ãåºããå ¥ã£ãããã¦ãããæå»ã¯åå¾5æã«ãªããæè¨ããç®ãä¸ããã¨ãå¾ ããã¡ãã£ãããã¨å¤§ãã¦æªã³ãã¦ãªãæ§åã§ãµããæã¶ãã§ãã£ã¦ããã ã礼ã«æçãä½ãã¨ã¯ããããµãã®å®¶ã«ã¯é£æãåå足ãã¦ããªããããããããã¦ã¹ã¼ãã¼ãã¼ã±ããã«å¯ããã¨ã«ãªã£ãããµãã¯éèã³ã¼ãã¼ããç²¾èã³ã¼ãã¼ã¾ã§ãã¾ãã§åªç§ãªã«ã¼ããã«å°ãããããã«ç¡é§ãªãç¹æ¤ãã¦ãã£ãã欲ããé£æãããã¨ã2ç§éç¨åº¦ããããåè¦ããä¸åº¦æã«åã£ããããããããè±èãããè¿·ããã¨ãªãåãæã£ã¦ããã«ã´ã«æ¾ãè¾¼ãã ãæå¾ã«ã¢ã«ã³ã¼ã«é£²æãå·ãããã¦ããæ£ã®åã¸è¡ãã¨ãç§ã飲ãããã¨ã
mod_rewriteã®è¨äºããã3åç®ã«ãªãã¾ãããªããªãæ £ããã¾ã§ã¯ã¯ã»ã®ããã¢ã¸ã¥ã¼ã«ã§ãããé常ã«ä¾¿å©ãªã¢ã¸ã¥ã¼ã«ã§ãããã¨ã¯èªèãã¦ããã ãã¦ãããã¨æãã¾ãã ãã¦ãååã§ã¯æ£è¦è¡¨ç¾ãå©ç¨ããURLã®æ¸ãæããå®è·µãã¦ãã¾ãããä»åã¯ããmod_rewriteã使ãããªãã¦ããã¾ãããã rewrite_ruleã®é©ç¨æ¡ä»¶ãæå®ãã 1ã¤ã®URLæ¸ãæããè¡ãã¨ãã¯ãã¾ãæ°ã«ãªãã¾ããããè¤æ°ã®ã¢ããªã±ã¼ã·ã§ã³ããã³ããªã³ã°ãããã¨ãªã£ã¦ããã¨æ¡ä»¶ãæå®ããããªããã®ã§ããããã§ãRewriteCondã¨ãããã£ã¬ã¯ãã£ãã使ç¨ãã¾ãããããâ ââã¨ããæ¡ä»¶ã®ã¨ãã¯ãRewriteRuleãé©ç¨ãããã¨ãã£ãifæã®ãããªè¨è¿°ããããã¨ãã§ãã¾ãã ããã§ã¯httpd.confã®VirtualHostã®å 容ã以ä¸ã®ãã®ã«å¤æ´ããã¦ã¿ã¾ãããã <VirtualHost *:80
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}