Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hiawatha和Drupal_Drupal_Hiawatha - Fatal编程技术网

Hiawatha和Drupal

Hiawatha和Drupal,drupal,hiawatha,Drupal,Hiawatha,我也在serverfault上发布了这个,但我可能问错了组 我正在使用Hiawatha web服务器,并在FastCGI PHP服务器上运行drupal。 drupal站点正在使用imagecache,它需要私有文件或干净的URL。 我在使用干净URL时遇到的问题是,对文件的请求也被重写到index.php中 我当前的配置是: UrlToolkit { ToolkitID = drupal RequestURI exists Return Match (/files/*)

我也在serverfault上发布了这个,但我可能问错了组

我正在使用Hiawatha web服务器,并在FastCGI PHP服务器上运行drupal。
drupal站点正在使用imagecache,它需要私有文件或干净的URL。 我在使用干净URL时遇到的问题是,对文件的请求也被重写到index.php中

我当前的配置是:

UrlToolkit {
    ToolkitID = drupal
    RequestURI exists Return
    Match (/files/*) Rewrite $1
    Match ^/(.*) Rewrite /index.php?q=$1
}
上述方法不起作用


Drupal的apache设置为:

<Directory /var/www/example.com>
  RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>

重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-f
重写cond%{REQUEST_FILENAME}-d
重写规则^(.*)$index.php?q=$1[L,QSA]

我认为您缺少规则的“返回”值:

UrlToolkit {
    ToolkitID = drupal
    RequestURI exists Return
    Match (/files/*) Rewrite $1 Return
    Match ^/(.*) Rewrite /index.php?q=$1
}