问题现象如题,在线等待中。。
网站目录:D:\htdocs
httpd.conf文件部分配置:
DocumentRoot "D:/htdocs"
<Directory "D:/htdocs">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "D:/xampp/cgi-bin/"
</IfModule>
<Directory "D:/xampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>httpd-vhosts.conf:
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
<VirtualHost *:80>
    DocumentRoot "D:/htdocs"
    ServerName localhost
</VirtualHost><VirtualHost *:80>
    DocumentRoot "D:/htdocs/dekiwiki/web"
    ServerName dekiwiki    <Directory "D:/htdocs/dekiwiki/web">
        allow from all
        Options +Indexes
        AllowOverride All
    </Directory>    ErrorLog D:/xampp/apache/logs/error-dekiwiki.log 
    CustomLog D:/xampp/apache/logs/access-dekiwiki.log common    DocumentRoot "D:/htdocs/dekiwiki/web"    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/$
    RewriteRule ^/$ /index.php?title= [L,QSA,NE]   RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$
   RewriteRule ^/@gui/(.*)$ /proxy.php?path=$1 [L,QSA,NE]    RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|@gui|deki)/
    RewriteCond %{REQUEST_URI} !^/index\.php
    RewriteCond %{REQUEST_URI} !^/favicon\.ico$
    RewriteCond %{REQUEST_URI} !^/robots\.txt$
    RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
    RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE] # Bug: 5252 https rewrite/proxy rules
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/@api/
RewriteCond %{QUERY_STRING} !^(.*)dream.in.scheme= [NC]
RewriteRule ^/@api/(.*)$ http://dekiwiki:8080/$1?dream.in.scheme=https [QSA,P,L]  RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/@api/
RewriteCond %{QUERY_STRING} ^(.*)dream.in.scheme= [NC]
RewriteRule ^/@api/(.*)$ http://dekiwiki:8080/$1 [QSA,P,L]
# End Bug: 5252
    # deki-api uses encoded slashes in query parameters so AllowEncodedSlashes must be On
    AllowEncodedSlashes On   # FIXME:
# Some php flags we need. These are only needed until all
        # the short php open tags are changed to long in the source code.
php_flag short_open_tag on
# Allow short open tags and turn off E_NOTICE messages
php_value error_reporting "E_ALL & ~E_NOTICE"
# Setting php memory parameters
# php_value memory_limit "128M"
        # php_value post_max_size "64M"
        # php_value upload_max_filesize "64M"
    # mod_proxy rules
    ProxyPass /@api http://dekiwiki:8080 retry=1
    ProxyPassReverse /@api http://dekiwiki:8080
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1    AllowEncodedSlashes On        <Proxy *>
          AddDefaultCharset off
          Order deny,allow
  #        Deny from all
          Allow from all
        </Proxy></VirtualHost>#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
##    ServerAdmin [email protected]
##    DocumentRoot /www/docs/dummy-host.example.com
##    ServerName dummy-host.example.com
##    ServerAlias www.dummy-host.example.com
##    ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>##<VirtualHost *:80>
##    ServerAdmin [email protected]
##    DocumentRoot /www/docs/dummy-host2.example.com
##    ServerName dummy-host2.example.com
##    ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>error.log:
[Wed Sep 30 17:25:57 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 30 17:25:57 2009] [notice] Digest: done
[Wed Sep 30 17:25:57 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 configured -- resuming normal operations
[Wed Sep 30 17:25:57 2009] [notice] Server built: Dec 10 2008 00:10:06
[Wed Sep 30 17:25:57 2009] [notice] Parent: Created child process 5376
[Wed Sep 30 17:25:58 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 30 17:25:58 2009] [notice] Digest: done
[Wed Sep 30 17:25:58 2009] [notice] Child 5376: Child process is running
[Wed Sep 30 17:25:58 2009] [notice] Child 5376: Acquired the start mutex.
[Wed Sep 30 17:25:58 2009] [notice] Child 5376: Starting 250 worker threads.
[Wed Sep 30 17:25:58 2009] [notice] Child 5376: Starting thread to listen on port 443.
[Wed Sep 30 17:25:58 2009] [notice] Child 5376: Starting thread to listen on port 80.
[Wed Sep 30 17:26:26 2009] [error] [client 192.168.1.13] script 'D:/htdocs/dekiwiki/index.php' not found or unable to stat
[Wed Sep 30 17:27:20 2009] [error] [client 192.168.1.13] script 'D:/htdocs/dekiwiki/index.php' not found or unable to stataccess.log:
192.168.1.13 - - [30/Sep/2009:17:26:26 +0900] "GET /dekiwiki/index.php HTTP/1.1" 404 1161
192.168.1.13 - - [30/Sep/2009:17:27:20 +0900] "GET /dekiwiki/index.php HTTP/1.1" 404 1161