文件:httpd-vhosts.conf
NameVirtualHost *:80#
# 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><VirtualHost *:80>
    DocumentRoot "C:/htdocs"
    ServerName localhost
</VirtualHost><VirtualHost *:80>
    DocumentRoot "C:/htdocs/dekiwiki/web"
    ServerName dekiwiki.localhost
#    ErrorLog /var/log/apache2/error.log
#    CustomLog /var/log/apache2/access.log common#    DocumentRoot "/var/www/dekiwiki"
    ErrorLog C:\xampp\apache\logs\error.log
    CustomLog C:\xampp\apache\logs\access.log common    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 %{REQUEST_URI} !^/error/(.*)\.var$
    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://localhost:8081/$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://localhost:8081/$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.localhost retry=1
    ProxyPassReverse /@api http://dekiwiki.localhost
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1    <Proxy *>
      AddDefaultCharset off
      Order deny,allow
      Deny from all
      Allow from all
    </Proxy>    AllowEncodedSlashes On    <Directory "C:/htdocs/dekiwiki/web">
        allow from all
        Options +Indexes
#        Options None
        AllowOverride All
    </Directory></VirtualHost>我向服务器能正常上传一个文件,可就是不能把传上去的文件打开,或者下载下来.每次都是下面的调到下面的错误页面了(页面地址栏显示:http://dekiwiki.localhost/@api/deki/archive/files/2/=README.txt):[an error occurred while processing this directive] The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page  about the error. [an error occurred while processing this directive] 好像是配置问题,可我刚开始弄这个,不太懂,大家给看看.谢谢