2012-02-11 31 views
0

我想用我的服務器(如果它的安裝光油)託管如何在遠程共享主機的varnish緩存中設置後端?

Default.vcl

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

遠程web緩存的網頁。如果寫這個,不能正常工作和回報我這個錯誤:

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" 

這是因爲後端是一個共享的服務器上。如何解決這個問題?

+0

那麼,你的Varnish在你的Apache的不同服務器上? – 2012-02-11 23:49:09

+0

是的,是的。是。 – sparkle 2012-02-12 14:55:49

回答

3

嘗試顯式設置主機頭。

sub vcl_recv { 
    set req.http.host = "shavrea.com"; 
}