ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã ã¨ããã¤ã¤ããããã¾ã§å¤§ãããã¨ã¯ãã¦ããªãã luaã¨ããé«éã«åä½ããçµã¿è¾¼ã¿ç³»ã®ã¹ã¯ãªããè¨èªã§éãã§ã¿ããã£ãã®ã¨ãããã ã£ãmod_luaã§éãã§ã¿ãã°ãããªã¨æã£ãã ãã§ãããã§ãå®éã«mod_luaãã³ã³ãã¤ã«ãã¦éãã§ã¿ããã³ã³ãã¤ã«ãªãã·ã§ã³ã¯ä»¥ä¸ã ./configure --prefix=/usr/local/apache2.4 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --enable-modules=all --enable-mods-shared=all --enable-mpms-shared='prefork worker event' -
ï¼·ï½ ï½ãµã¤ãããªãã¥ã¼ã¢ã«ããã¨ããªã©ãã¦ã¼ã¶ã¼ã¸ã¯ã¡ã³ããã³ã¹ä¸è¡¨ç¤ºã«ããªãããè£ã§ã¯åä½ç¢ºèªç¨ã«é常ã¢ã¯ã»ã¹ãè¡ãããå ´åãããã¾ãã å ·ä½çã«è¨ãã¨ãç¹å®ã®ãã¹ãï¼ï¼©ï¼°ã¢ãã¬ã¹ãåºå®ã®ãã¹ããæã¾ããï¼ããã®ã¢ã¯ã»ã¹ä»¥å¤ã¯ãã¡ã³ããã³ã¹ä¸è¡¨ç¤ºãè¡ããµã¤ãã¸ãªãã¤ã¬ã¯ããããã¨ããæãã§ããã Apacheã«mod_rewriteããã¼ãããã¦ãããªã以ä¸ã®ãããª.htaccessãç½®ãã ãã§å®ç¾ã§ãã¾ãã RewriteEngine  on RewriteCond  %{REMOTE_ADDR}  !^000\.000\.000\.000$ RewriteCond  %{REMOTE_ADDR}  !^111\.111\.111\.111$ RewriteRule  ^(.*)$ http://???.???.???.???/index.html 000.000.000
tDiaryãHikiã®html_anchorãã©ã°ã¤ã³ããrailsã§ä½¿ãããããã©ã«ãã®.htaccessã§ä¾¿å©ã«ä½¿ããã¦ãã mod_rewrite ãèªåã§ã使ã£ã¦ã¿ãããã¨æããè²ã ã¨è©¦è¡é¯èª¤ããã¡ã¢ã åèã«ããã®ã¯ æ浦ã¨ãã¼ã ãã¼ã¸è£½ä½ãURLãæ¸ãæããï¼ãRewrite æ©è½ã¨ã¯ã mod_rewrite - Apache HTTP Server 302 Found(ä¸ã®å訳) ã»ãã 以ä¸ã§ä½¿ã£ã¦ããCGI env.cgi ã¯ããããªã® #!/usr/bin/ruby puts "Content-type: text/plain;\n\n" ENV.sort.each{|k,v| puts "#{k} : #{v}"} .htaccesã§ä½¿ã£ã¦ç¡éã«ã¼ã http://localhost/~hiraku/http_test/rewrite/path/info ã¨ããU
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}