我已經安裝了varnish-ban-manager(https://github.com/dot2code/varnish-bans-manager),我目前正在配置它的DNS名稱。 問題是我在Route53(AWS中的DNS服務)中設置了使用名稱http:// purge.domain.com /指向http:// varnish_server_name.com/。問題是,如果我使用http:// purge.domain .com:9000 /測試它正常工作,但使用http://purge.domain.com/會向我發送「您的請求無法處理」(在a清漆錯誤屏幕)。 任何想法,爲什麼會發生這種情況?我已經測試這與該虛擬機的IP地址,也完美的作品.. 這裏是虛擬主機配置文件:Issu與varnish-ban-manager安裝,在AWS中使用vhost
<VirtualHost *:80>
ServerName purge.domain.com
ServerAlias purge.domain.com
ProxyPass / http://varnish_server.domain:9200/
ProxyPassReverse / http://purge.domain.com/
# Logging
ErrorLog logs/server-error_log
CustomLog logs/server-access_log combined
</VirtualHost>
注:我已經取代了我的真實域名爲「域」,以防萬一。
謝謝你們!