On Tue, 2004-12-21 at 13:29 +0300, lh79@mail.ru wrote:
> Hi, there!
>
> Imagine you have a box with one IP interface
> It has one IP address but two domainnames,
> say domain1.com and domain2.com,
> can be resolved to this IP address.
>
> Is it possible to configure squid,
> so it could be accessed using, say domain1.com:3128,
> but not accessed using, say domain2.com:3128?
No. Virtual-hosting is not available at the HTTP Proxy layer. This is
not a limitation specific to squid, but a design feature of HTTP.
> And another question is it possible to configure squid,
> so it could be accessed using, say domain1.com:3128,
> but not accessed using IP address of this box?
No, for the same reason as above. There is no way for an HTTP proxy to
know how it was named by the client.
> PS:
> This situation resembles name-based virtual hosting in Apache
> when you access different sites located on one box
> and operated by one instance of Apache.
For websites you can do it with squid too, in accelerator mode.
Kinkie
Received on Tue Dec 21 2004 - 03:43:25 MST
This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST