0

サーバー (Varnished がインストールされている場所) を使用して、リモート Web ホスティングの Web ページをキャッシュしたい

デフォルト.vcl

backend default {
    .host = "shavrea.com";
    .port = "80";
}

これを書いてもうまくいかず、次のエラーが返されます。

Site Temporarily Unavailable

We apologize for the inconvenience. Please contact the webmaster/ tech support immediately to have them rectify this.
error id: "bad_httpd_conf"

これは、そのバックエンドが共有サーバー上にあるためです。これを解決するには?

4

1 に答える 1

3

Host ヘッダーを明示的に設定してみてください。

sub vcl_recv {
  set req.http.host = "shavrea.com";
}
于 2012-02-13T08:42:37.830 に答える