fulan Peng wrote:
> Thank you, Amos!
>
> I read that Wiki many times and tried many times. It seems some web
> sites refuse to be proxied. Probably they had a look of the user agent
> from the header. When they found the agent is not Netscape nor
> Firefox, they kick Squid out.
Huh? Squid leaves the clients web browser User-Agent in the headers.
> I know wget can trick the web server by using -U option, like -U
> Mozalla. Can you tell me how Squid trick the web server to change the
> request header user agent to Mozalla?
>
> Varnish and nginx all failed with that web site. wget is ok to
> download the whole web site with options -U. Netscape and Firefox have
> no problem to browse it.
>
> Thank you!
>
Wait up. The question you asked below was how to _do_ virtual hosting.
I answered your question.
What you are now describing is that you have a regular proxy wanting
help accessing a regular website. This is in no way virtual-hosting related.
Please start again, with exact details of what your real problem is. No
more guessing please.
Amos
>
>
> On Sun, Dec 20, 2009 at 6:16 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> fulan Peng wrote:
>>> We know lots of web sites hosted more than one web site. That means
>>> one IP,multiple host names. The web server go to different
>>> directories based on different domain names.
>>> Now how squid proxy them?
>>>
>>> if one IP hosted 2 web sites: a.www.company.com and b.www.company.com,
>>> I want to set up squid to proxy a.www.company.com with
>>> https://squid.com:8000 and b.www.company.com with
>>> https://squid.com:8001. How can I do it?
>> The easy way is detailed here:
>> http://wiki.squid-cache.org/ConfigExamples/Reverse/VirtualHosting
>>
-- Please be using Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20 Current Beta Squid 3.1.0.15Received on Mon Dec 21 2009 - 02:35:13 MST
This archive was generated by hypermail 2.2.0 : Mon Dec 21 2009 - 12:00:02 MST