1

对于一些针对 Varnish 的特定 Apache V.Host 设置,我仍然没有清楚和困惑。而且很难找到这样基本的东西。

我作为默认环境设置运行,其中:

  • 上清漆:80
  • 和 Apache:8080

所以我把我的 Apache Virtuallocalhost放在:8080这样的位置:

<VirtualHost *:8080>
    ..
    ServerName localhost
    ..
</VirtualHost>

好的,现在请让我确切地知道 SUB DOMAINS<VirtualHost>设置如何?
假设我有 2 个虚拟子域:

<VirtualHost *:xx>
    ..
    ServerName sub1.example.com
    ..
</VirtualHost>
<VirtualHost *:xx>
    ..
    ServerName sub2.example.com
    ..
</VirtualHost>

也可以通过 Varnish 为他们服务:

  • Ports他们也必须是:8080吗?
  • 那么,我需要做更多的 VCL 设置吗?
4

0 回答 0