From: André Malo
| Description: | Indicates if the cache observes Expires dates when seeking -files |
|---|---|
| Syntax: | CacheExpiryCheck On|Off |
| Default: | CacheExpiryCheck On |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
More detail will be added here, when the function is implemented.
- -
- CacheExpiryCheck Off
-
CacheExpiryCheck directive is currently
- not implemented.
- | Description: | The time to retain unchanged cached files that match a -URL |
|---|---|
| Syntax: | CacheGcClean hours url-string |
| Default: | CacheGcClean ? |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
More detail will be added here, when the function is implemented.
- -
- CacheGcClean 12 /daily_scripts
-
CacheGcClean directive is currently
- not implemented.
- | Description: | The recurring time each day for garbage collection to be run. -(24 hour clock) |
|---|---|
| Syntax: | CacheGcDaily time |
| Default: | CacheGcDaily ? |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
More detail will be added here, when the function is implemented.
- -
- CacheGcDaily 23:59
-
CacheGcDaily directive is currently
- not implemented.
- | Description: | The interval between garbage collection attempts. |
|---|---|
| Syntax: | CacheGcInterval hours |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
The CacheGcInterval directive specifies the
- number of hours to wait between attempts to free up disk space.
More detail will be added here, when the function is implemented.
- -
- CacheGcInterval 24
-
CacheGcInterval directive is currently
- not implemented.
- | Description: | The maximum kilobytes of memory used for garbage -collection |
|---|---|
| Syntax: | CacheGcMemUsage KBytes |
| Default: | CacheGcMemUsage ? |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
More detail will be added here, when the function is implemented.
- -
- CacheGcMemUsage 16
-
CacheGcMemUsage directive is currently
- not implemented.
- | Description: | The time to retain unreferenced cached files that match a -URL. |
|---|---|
| Syntax: | CacheGcUnused hours url-string |
| Default: | CacheGcUnused ? |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
More detail will be added here, when the function is implemented.
- -
- CacheGcUnused 12 /local_images
-
CacheGcUnused directive is currently
- not implemented.
- | Description: | The maximum amount of disk space that will be used by the -cache in KBytes |
|---|---|
| Syntax: | CacheSize KBytes |
| Default: | CacheSize 1000000 |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
The CacheSize directive sets the desired
- disk space usage of the cache, in KBytes (1024-byte units). This
- directive does not put a hard limit on the size of the cache. The
- garbage collector will delete files until the usage is at or below the
- settings. Always use a value that is lower than the available disk
- space.
- CacheSize 5000000
-
| Description: | The minimum time margin to cache a document |
|---|---|
| Syntax: | CacheTimeMargin ? |
| Default: | CacheTimeMargin ? |
| Context: | server config, virtual host |
| Status: | Experimental |
| Module: | mod_disk_cache |
More detail will be added here, when the function is implemented.
- -
- CacheTimeMargin X
-
CacheTimeMargin directive is currently
- not implemented.
- | ¼³¸í: | Content cache storage manager keyed to URIs |
|---|---|
| »óÅÂ: | Experimental |
| ¸ðµâ¸í: | disk_cache_module |
| ÀâÌÀ: | ¥Ð¡¼¥¸¥ç¥ó°Í¸¤ÎÀßÄê |
|---|---|
| ¥¹¥Æ¡¼¥¿¥¹: | Extension |
| ¥â¥¸¥å¡¼¥ë¼±ÊÌ»Ò: | version_module |
| ¥½¡¼¥¹¥Õ¥¡¥¤¥ë: | mod_version.c |
| ¸ß´¹À: | ¥Ð¡¼¥¸¥ç¥ó 2.1 °Ê¹ß |
ÍÍ¡¹¤Ê¥Ð¡¼¥¸¥ç¥ó¤Î httpd ¤Î°Û¤Ê¤ëÀßÄê¤ò°·¤¦¤³¤È¤Ë¤Ê¤ë¡¢
+ ¥Æ¥¹¥È¥¹¥¤¡¼¥È¤äÂ絬Ìϥͥåȥ¥¯¤Ç¤Î»ÈÍѤΤ¿¤á¤ËÀ߷פµ¤ì¤Æ¤¤¤Þ¤¹¡£
+ ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¿·¤·¤¤¥³¥ó¥Æ¥Ê ¡½ <IfVersion> ¤ò
+ Ä󶡤·¤Þ¤¹¡£¤³¤ì¤ò»È¤¦¤È¡¢¿ô»ú¤ÎÈæ³Ó¤äÀµµ¬É½¸½¤Ë¤è¤ë½ÀÆð¤Ê
+ ¥Ð¡¼¥¸¥ç¥ó¥Á¥§¥Ã¥¯¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
+ <IfVersion 2.1.0>
+
+ # current httpd version is exactly 2.1.0
+
+ </IfVersion>
+
+ <IfVersion >= 2.2>
+
+ # use really new features :-)
+
+ </IfVersion>
+
¾ÜºÙ¤Ï°Ê²¼¤òÆÉ¤ó¤Ç¤¯¤À¤µ¤¤¡£
+
<IfVersion>| ÀâÌÀ: | ¥Ð¡¼¥¸¥ç¥ó°Í¸¤ÎÀßÄê¤òÆþ¤ì¤ë |
|---|---|
| ¹½Ê¸: | <IfVersion [[!]operator] version> ...
+</IfVersion> |
| ¥³¥ó¥Æ¥¥¹¥È: | ¥µ¡¼¥ÐÀßÄê¥Õ¥¡¥¤¥ë, ¥Ð¡¼¥Á¥ã¥ë¥Û¥¹¥È, ¥Ç¥£¥ì¥¯¥È¥ê, .htaccess |
| ¾å½ñ¤: | All |
| ¥¹¥Æ¡¼¥¿¥¹: | Extension |
| ¥â¥¸¥å¡¼¥ë: | mod_version |
<IfVersion> ¤Ï httpd ¤Î¥Ð¡¼¥¸¥ç¥ó
+ ¤¬´ð½à¤òËþ¤¿¤·¤¿¤È¤¤Ë¤Î¤ß¼Â¹Ô¤µ¤»¤¿¤¤¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤ò°Ï¤ß¤Þ¤¹¡£
+ Ä̾ï¤Î (¿ôÃÍ) Èæ³Ó¤Î¤È¤¤Ï version °ú¿ô¤Ï
+ major[.minor[.patch]] ¤È¤¤¤¦
+ ·Á¼°¡¢Î㤨¤Ð¡¢2.1.0 ¤ä 2.2 ¤È¤Ê¤ê¤Þ¤¹¡£
+ minor ¤È patch ¤Ï¾Êά²Äǽ¤Ç¤¹¡£¾Êά¤µ¤ì¤¿¾ì¹ç¤Ï¡¢
+ 0 ¤ò»ØÄꤷ¤¿¤â¤Î¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£Èæ³Ó¤Ë¤Ï¼¡¤Î¿ôÃÍ operator ¤ò
+ »ØÄê¤Ç¤¤Þ¤¹:
| operator | ÀâÌÀ |
|---|---|
= ¤È == |
+ Ʊ¤¸ httpd ¥Ð¡¼¥¸¥ç¥ó |
> |
+ ¤è¤êÂ礤¤ httpd ¥Ð¡¼¥¸¥ç¥ó |
>= |
+ »ØÄê°Ê¾å¤Î httpd ¥Ð¡¼¥¸¥ç¥ó |
< |
+ »ØÄê̤Ëþ¤Î httpd ¥Ð¡¼¥¸¥ç¥ó |
<= |
+ »ØÄê°Ê²¼¤Î httpd ¥Ð¡¼¥¸¥ç¥ó |
+ <IfVersion >= 2.1>
+
+ # this happens only in versions greater or
+ # equal 2.1.0.
+
+ </IfVersion>
+
¿ôÃÍÈæ³Ó¤Ë²Ã¤¨¤Æ¡¢http ¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ËÂФ·¤ÆÀµµ¬É½¸½¤Ë¤è¤ë + ¥Þ¥Ã¥Á¥ó¥°¤¬¤Ç¤¤Þ¤¹¡£Æó¼ïÎà¤Î½ñ¤Êý¤¬¤¢¤ê¤Þ¤¹:
+ +| operator | ÀâÌÀ |
|---|---|
= or == |
+ version ¤Ï
+ /regex/ ·Á¼° |
~ |
+ version ¤Ï
+ regex ·Á¼° |
+ <IfVersion = /^2.1.[01234]$/>
+
+ # e.g. workaround for buggy versions
+
+ </IfVersion>
+
¥Þ¥Ã¥Á¥ó¥°¤ÎÈÝÄê¤òɽ¸½¤¹¤ë¤¿¤á¤Ë¡¢¤¹¤Ù¤Æ¤Î¥ª¥Ú¥ì¡¼¥¿¤ÏÁ°¤Ë
+ ´¶Ã²Éä (!)¤òÉÕ¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
+ <IfVersion !~ ^2.1.[01234]$>
+
+ # not for those versions
+
+ </IfVersion>
+
operator ¤¬¾Êά¤µ¤ì¤¿¤È¤¤Ï = ¤È
+ ¤ß¤Ê¤µ¤ì¤Þ¤¹¡£