Guest User

RFC 3875 web server compliancy

a guest
Jul 16th, 2011
235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apache 2.2 + mod_fastcgi configured as konstantin at symbi dot org comment (all request are sent to FPM):
  2. Request http://my.site/test_mem.php?N=1
  3. -----------------------------------------------------------------------
  4. DOCUMENT_ROOT=/home/fat/web/docs/php
  5. SCRIPT_FILENAME=/home/fat/web/docs/php/test_mem.php
  6. REQUEST_URI=/test_mem.php?N=1
  7. QUERY_STRING=N=1
  8. SCRIPT_NAME=/test_mem.php
  9. PATH_INFO is unset
  10. PATH_TRANSLATED is unset
  11.  
  12.  
  13. apache 2.2 + mod_fastcgi configured as konstantin at symbi dot org comment (all request are sent to FPM):
  14. Request http://my.site/test_mem.php/toto?N=1
  15. -----------------------------------------------------------------------
  16. DOCUMENT_ROOT=/home/fat/web/docs/php
  17. SCRIPT_FILENAME=/home/fat/web/docs/php/test_mem.php
  18. REQUEST_URI=/test_mem.php/toto?N=1
  19. QUERY_STRING=N=1
  20. SCRIPT_NAME=/test_mem.php
  21. PATH_INFO=/toto
  22. PATH_TRANSLATED=/home/fat/web/docs/php/toto
  23.  
  24.  
  25. apache 2.2 + mod_fastcgi configured more commonly (see above -- only .php uri)
  26. Request http://my.site/test_mem.php?N=1
  27. ---------------------------------------------------------
  28. DOCUMENT_ROOT=/home/fat/web/docs/php
  29. SCRIPT_FILENAME=/php-fpm-handler
  30. SCRIPT_NAME=/php-fpm
  31. REQUEST_URI=/test_mem.php?N=1
  32. QUERY_STRING=N=1
  33. PATH_INFO=/test_mem.php
  34. PATH_TRANSLATED=/home/fat/web/docs/php/test_mem.php
  35.  
  36.  
  37. apache 2.2 + mod_fastcgi configured more commonly (see above -- only .php uri)
  38. Request http://my.site/test_mem.php/toto?N=1
  39. ---------------------------------------------------------
  40. DOCUMENT_ROOT=/home/fat/web/docs/php
  41. SCRIPT_FILENAME=/php-fpm-handler
  42. SCRIPT_NAME=/php-fpm
  43. REQUEST_URI=/test_mem.php/toto?N=1
  44. QUERY_STRING=N=1
  45. PATH_INFO=/test_mem.php/toto
  46. PATH_TRANSLATED=/home/fat/web/docs/php/test_mem.php/toto
  47.  
  48.  
  49. apache 2.2 + mod_fcgid
  50. -----------------------
  51. mod_fcgid can't connect to an external FCGI process. So it can't be used with FPM.
  52.  
  53. apache 2.3.12 + mod_proxy_fcgi
  54. Request http://my.site/test_mem.php?N=1
  55. ------------------------------
  56. DOCUMENT_ROOT=/home/fat/web/docs/php
  57. SCRIPT_FILENAME=proxy:fcgi://127.0.0.1:9000/test_mem.php
  58. REQUEST_URI=/test_mem.php?N=1
  59. QUERY_STRING=N=1
  60. SCRIPT_NAME=/test_mem.php
  61. PATH_INFO is not set
  62. PATH_TRANSLATED is not set
  63.  
  64.  
  65. apache 2.3.12 + mod_proxy_fcgi
  66. Request http://my.site/test_mem.php/toto?N=1
  67. ------------------------------
  68. DOCUMENT_ROOT=/home/fat/web/docs/php
  69. SCRIPT_FILENAME=proxy:fcgi://127.0.0.1:9000/test_mem.php/toto
  70. REQUEST_URI=/test_mem.php/toto?N=1
  71. QUERY_STRING=N=1
  72. SCRIPT_NAME=/test_mem.php/toto
  73. PATH_INFO is not set
  74. PATH_TRANSLATED is not set
  75.  
  76.  
  77. apache 2.3.12 + mod_proxy_fcgi with proxy-fcgi-pathinfo
  78. Request http://my.site/test_mem.php?N=1
  79. ------------------------------
  80. DOCUMENT_ROOT=/home/fat/web/docs/php
  81. SCRIPT_FILENAME=proxy:fcgi://127.0.0.1:9000/test_mem.php
  82. REQUEST_URI=/test_mem.php?N=1
  83. QUERY_STRING=N=1
  84. SCRIPT_NAME=(empty string)
  85. PATH_INFO=/test_mem.php
  86. PATH_TRANSLATED=proxy:fcgi://127.0.0.1:9000/test_mem.php/toto/test_mem.php
  87.  
  88.  
  89. apache 2.3.12 + mod_proxy_fcgi with proxy-fcgi-pathinfo
  90. Request http://my.site/test_mem.php/toto?N=1
  91. ------------------------------
  92. DOCUMENT_ROOT=/home/fat/web/docs/php
  93. SCRIPT_FILENAME=proxy:fcgi://127.0.0.1:9000/test_mem.php/toto
  94. REQUEST_URI=/test_mem.php/toto?N=1
  95. QUERY_STRING=N=1
  96. SCRIPT_NAME=(empty string)
  97. PATH_INFO=/test_mem.php/toto
  98. PATH_TRANSLATED=proxy:fcgi://127.0.0.1:9000/test_mem.php/toto/test_mem.php/toto
  99.  
  100.  
  101. nginx with default configuration
  102. Request http://my.site/test_mem.php?N=1
  103. --------------------------------
  104. DOCUMENT_ROOT=/home/fat/web/docs/php
  105. SCRIPT_FILENAME=/home/fat/web/docs/php/test_mem.php
  106. REQUEST_URI=/test_mem.php
  107. QUERY_STRING=N=1
  108. SCRIPT_NAME=/test_mem.php
  109. PATH_INFO is unset
  110. PATH_TRANSLATED is unset
  111.  
  112.  
  113. nginx with default configuration + PATH_INFO support
  114. Request http://my.site/test_mem.php?N=1
  115. ----------------------------------------------------
  116. DOCUMENT_ROOT=/home/fat/web/docs/php
  117. SCRIPT_FILENAME=/home/fat/web/docs/php/test_mem.php
  118. REQUEST_URI=/test_mem.php
  119. QUERY_STRING=N=1
  120. SCRIPT_NAME=/test_mem.php
  121. PATH_INFO=(empty string)
  122. PATH_TRANSLATED=/home/fat/web/docs/php
  123.  
  124.  
  125. nginx with default configuration
  126. Request http://my.site/test_mem.php/toto?N=1
  127. ----------------------------------------------------
  128. DOCUMENT_ROOT=/home/fat/web/docs/php
  129. SCRIPT_FILENAME==/home/fat/web/docs/php/test_mem.php/toto
  130. REQUEST_URI=/test_mem.php/toto?N=1
  131. QUERY_STRING=N=1
  132. SCRIPT_NAME=/test_mem.php/toto
  133. PATH_INFO is not set
  134. PATH_TRANSLATED is not set
  135.  
  136.  
  137. nginx with default configuration + PATH_INFO support
  138. Request http://my.site/test_mem.php/toto?N=1
  139. ----------------------------------------------------
  140. DOCUMENT_ROOT=/home/fat/web/docs/php
  141. SCRIPT_FILENAME==/home/fat/web/docs/php/test_mem.php
  142. REQUEST_URI=/test_mem.php/toto?N=1
  143. QUERY_STRING=N=1
  144. SCRIPT_NAME=/test_mem.php
  145. PATH_INFO=/toto
  146. PATH_TRANSLATED=/home/fat/web/docs/php/toto
  147.  
  148.  
  149. lighttpd default configuration
  150. Request http://my.site/test_mem.php?N=1
  151. --------------------------------------------
  152. DOCUMENT_ROOT=/home/fat/web/docs/php
  153. SCRIPT_FILENAME==/home/fat/web/docs/php/test_mem.php
  154. REQUEST_URI=/test_mem.php?N=1
  155. QUERY_STRING=N=1
  156. SCRIPT_NAME=/test_mem.php
  157. PATH_INFO=(empty string)
  158. PATH_TRANSLATED is not set
  159.  
  160.  
  161. lighttpd default configuration
  162. Request http://my.site/test_mem.php/toto?N=1
  163. --------------------------------------------
  164. DOCUMENT_ROOT=/home/fat/web/docs/php
  165. SCRIPT_FILENAME==/home/fat/web/docs/php/test_mem.php
  166. REQUEST_URI=/test_mem.php/toto?N=1
  167. QUERY_STRING=N=1
  168. SCRIPT_NAME=/test_mem.php
  169. PATH_INFO=/toto
  170. PATH_TRANSLATED=/home/fat/web/docs/php/toto
RAW Paste Data