免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3966 | 回复: 4
打印 上一主题 下一主题

[Web] apache 的vhost_alias 和.htaccess文件是不是有冲突? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-22 22:56 |只看该作者 |倒序浏览
我的apache版本是2.0.54,我使用了vhost_alias模块来设置我的虚拟主机:
VirtualDocumentRoot /home/vhosts/%0/wwwroot

以便让用户可以在自己的虚拟主机目录下使用.htaccess文件,但现在碰到的问题是如果不使用
VirtualDocumentRoot /home/vhosts/%0/wwwroot
直接用 DocumentRoot /home/vhosts/www.test.com/wwwroot
.htaccess文件起作用,但如果用
VirtualDocumentRoot /home/vhosts/%0/wwwroot
则出现500 Internal Server Error错误:


  1. mod_rewrite: maximum number of internal redirects reached. Assuming
  2. configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
  3. [Mon May 22 22:45:32 2006] [error] [client 222.41.64.205] mod_rewrite: maximum number of internal redirects reached. Assuming
  4. configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
复制代码


我想可能是,.htaccess文件里的设置和vhost_alias有冲突,应该怎样设置呢?

/home/vhosts/www.test.com/wwwroot/.htaccess文件的内容如下:

  1. RewriteEngine on
  2. RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
复制代码

[ 本帖最后由 ptsmy 于 2006-5-23 11:37 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-05-23 11:43 |只看该作者
顶一下

论坛徽章:
0
3 [报告]
发表于 2006-05-23 15:15 |只看该作者
这是我的日志,是出在rewrite规则上面了,可怎么设置才能让vhost_alias和.htaccess共存呢





  1. bash-2.03# more /usr/local/apache/logs/rewrite_log
  2. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (2) init rewrite engine with re
  3. quested uri /foo/bar
  4. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (1) pass through /foo/bar
  5. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (3) [per-dir /home/vhosts/www.w
  6. onniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/foo -> /home/vhosts/www.wonniu.com/wwwroot/foo
  7. /bar
  8. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (3) [per-dir /home/vhosts/www.w
  9. onniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/foo/bar -> foo/bar
  10. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (3) [per-dir /home/vhosts/www.w
  11. onniu.com/wwwroot/] applying pattern '.*$' to uri 'foo/bar'
  12. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (2) [per-dir /home/vhosts/www.w
  13. onniu.com/wwwroot/] rewrite foo/bar -> index.php
  14. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (3) [per-dir /home/vhosts/www.w
  15. onniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  16. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dfb78/initial] (1) [per-dir /home/vhosts/www.w
  17. onniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  18. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (2) init rewrite engine
  19. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  20. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (1) pass through /home/
  21. vhosts/www.wonniu.com/wwwroot/index.php
  22. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (3) [per-dir /home/vhos
  23. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  24. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  25. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (3) [per-dir /home/vhos
  26. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  27. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  28. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (3) [per-dir /home/vhos
  29. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  30. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (2) [per-dir /home/vhos
  31. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  32. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (3) [per-dir /home/vhos
  33. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  34. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d7450/initial/redir#1] (1) [per-dir /home/vhos
  35. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  36. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (2) init rewrite engine
  37. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  38. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (1) pass through /home/
  39. vhosts/www.wonniu.com/wwwroot/index.php
  40. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (3) [per-dir /home/vhos
  41. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  42. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  43. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (3) [per-dir /home/vhos
  44. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  45. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  46. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (3) [per-dir /home/vhos
  47. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  48. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (2) [per-dir /home/vhos
  49. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  50. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (3) [per-dir /home/vhos
  51. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  52. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e5928/initial/redir#2] (1) [per-dir /home/vhos
  53. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  54. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (2) init rewrite engine
  55. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  56. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (1) pass through /home/
  57. vhosts/www.wonniu.com/wwwroot/index.php
  58. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (3) [per-dir /home/vhos
  59. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  60. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  61. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (3) [per-dir /home/vhos
  62. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  63. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  64. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (3) [per-dir /home/vhos
  65. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  66. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (2) [per-dir /home/vhos
  67. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  68. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (3) [per-dir /home/vhos
  69. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  70. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d1be8/initial/redir#3] (1) [per-dir /home/vhos
  71. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  72. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (2) init rewrite engine
  73. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  74. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (1) pass through /home/
  75. vhosts/www.wonniu.com/wwwroot/index.php
  76. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (3) [per-dir /home/vhos
  77. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  78. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  79. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (3) [per-dir /home/vhos
  80. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  81. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  82. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (3) [per-dir /home/vhos
  83. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  84. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (2) [per-dir /home/vhos
  85. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  86. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (3) [per-dir /home/vhos
  87. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  88. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e2018/initial/redir#4] (1) [per-dir /home/vhos
  89. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  90. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (2) init rewrite engine
  91. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  92. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (1) pass through /home/
  93. vhosts/www.wonniu.com/wwwroot/index.php
  94. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (3) [per-dir /home/vhos
  95. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  96. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  97. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (3) [per-dir /home/vhos
  98. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  99. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  100. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (3) [per-dir /home/vhos
  101. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  102. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (2) [per-dir /home/vhos
  103. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  104. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (3) [per-dir /home/vhos
  105. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  106. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e3418/initial/redir#5] (1) [per-dir /home/vhos
  107. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  108. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (2) init rewrite engine
  109. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  110. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (1) pass through /home/
  111. vhosts/www.wonniu.com/wwwroot/index.php
  112. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (3) [per-dir /home/vhos
  113. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  114. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  115. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (3) [per-dir /home/vhos
  116. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  117. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  118. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (3) [per-dir /home/vhos
  119. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  120. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (2) [per-dir /home/vhos
  121. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  122. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (3) [per-dir /home/vhos
  123. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  124. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2dc960/initial/redir#6] (1) [per-dir /home/vhos
  125. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  126. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (2) init rewrite engine
  127. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  128. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (1) pass through /home/
  129. vhosts/www.wonniu.com/wwwroot/index.php
  130. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (3) [per-dir /home/vhos
  131. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  132. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  133. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (3) [per-dir /home/vhos
  134. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  135. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  136. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (3) [per-dir /home/vhos
  137. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  138. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (2) [per-dir /home/vhos
  139. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  140. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (3) [per-dir /home/vhos
  141. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  142. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2d9e60/initial/redir#7] (1) [per-dir /home/vhos
  143. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  144. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (2) init rewrite engine
  145. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  146. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (1) pass through /home/
  147. vhosts/www.wonniu.com/wwwroot/index.php
  148. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (3) [per-dir /home/vhos
  149. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  150. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  151. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (3) [per-dir /home/vhos
  152. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  153. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  154. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (3) [per-dir /home/vhos
  155. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  156. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (2) [per-dir /home/vhos
  157. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  158. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (3) [per-dir /home/vhos
  159. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php
  160. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2db4c0/initial/redir#8] (1) [per-dir /home/vhos
  161. ts/www.wonniu.com/wwwroot/] internal redirect with /home/vhosts/www.wonniu.com/wwwroot/index.php [INTERNAL REDIRECT]
  162. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (2) init rewrite engine
  163. with requested uri /home/vhosts/www.wonniu.com/wwwroot/index.php
  164. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (1) pass through /home/
  165. vhosts/www.wonniu.com/wwwroot/index.php
  166. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (3) [per-dir /home/vhos
  167. ts/www.wonniu.com/wwwroot/] add path info postfix: /home/vhosts/www.wonniu.com/wwwroot/home -> /home/vhosts/www.wonniu.com/ww
  168. wroot/home/vhosts/www.wonniu.com/wwwroot/index.php
  169. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (3) [per-dir /home/vhos
  170. ts/www.wonniu.com/wwwroot/] strip per-dir prefix: /home/vhosts/www.wonniu.com/wwwroot/home/vhosts/www.wonniu.com/wwwroot/inde
  171. x.php -> home/vhosts/www.wonniu.com/wwwroot/index.php
  172. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (3) [per-dir /home/vhos
  173. ts/www.wonniu.com/wwwroot/] applying pattern '.*$' to uri 'home/vhosts/www.wonniu.com/wwwroot/index.php'
  174. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (2) [per-dir /home/vhos
  175. ts/www.wonniu.com/wwwroot/] rewrite home/vhosts/www.wonniu.com/wwwroot/index.php -> index.php
  176. 222.41.64.205 - - [23/May/2006:15:13:44 +0800] [www.wonniu.com/sid#a5480][rid#2e8fb8/initial/redir#9] (3) [per-dir /home/vhos
  177. ts/www.wonniu.com/wwwroot/] add per-dir prefix: index.php -> /home/vhosts/www.wonniu.com/wwwroot/index.php


  178. bash-2.03#



复制代码

论坛徽章:
0
4 [报告]
发表于 2006-05-23 15:17 |只看该作者
这是我的部分httpd.conf文件




  1. UseCanonicalName Off

  2. #
  3. # DocumentRoot: The directory out of which you will serve your
  4. # documents. By default, all requests are taken from this directory, but
  5. # symbolic links and aliases may be used to point to other locations.
  6. #
  7. #DocumentRoot "/home/vhosts/www.wonniu.com/wwwroot"
  8. VirtualDocumentRoot /home/vhosts/%0/wwwroot
  9. RewriteEngine On
  10. RewriteLog "logs/rewrite_log"
  11. RewriteLogLevel 9
  12. #RewriteOptions MaxRedirects=200
  13. #
  14. # Each directory to which Apache has access can be configured with respect
  15. # to which services and features are allowed and/or disabled in that
  16. # directory (and its subdirectories).
  17. #
  18. # First, we configure the "default" to be a very restrictive set of
  19. # features.
  20. #
  21. <Directory />
  22.     Options FollowSymLinks
  23.     AllowOverride All
  24. </Directory>

  25. #
  26. # Note that from this point forward you must specifically allow
  27. # particular features to be enabled - so if something's not working as
  28. # you might expect, make sure that you have specifically enabled it
  29. # below.
  30. #

  31. #
  32. # This should be changed to whatever you set DocumentRoot to.
  33. #


  34. #
  35. # UserDir: The name of the directory that is appended onto a user's home
  36. # directory if a ~user request is received.
  37. #
  38. #UserDir public_html

  39. #
  40. # Control access to UserDir directories.  The following is an example
  41. # for a site where these directories are restricted to read-only.
  42. #
  43. <Directory /home/vhosts/*/wwwroot>
  44.   Options FollowSymLinks
  45.   AllowOverride All
  46. </Directory>




复制代码

论坛徽章:
0
5 [报告]
发表于 2011-02-17 01:01 |只看该作者
vvvvvvvvvvvvvvvvvvvvvvvvvv
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP