vhost?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

vhost?

Jenn G.
hello list,

I saw this statement on ReverseProxy wiki:

If you are using Squid has an accelerator for a domain based virtual
host system then you need to additionally specify the vhost option to
http_port

http_port 80 accel defaultsite=your.main.website vhost



When using vhost,does it mean squid act as a domain based vitual
host,or real server was a domain based vitual host?

Thanks!

--jen
Reply | Threaded
Open this post in threaded view
|

Re: vhost?

Henrik Nordström
lör 2007-06-09 klockan 12:25 +0800 skrev Jen mlists:

> When using vhost,does it mean squid act as a domain based vitual
> host,or real server was a domain based vitual host?

It means Squid will use the Host header to figure out what the requested
URL really is.

Without vhost Squid ignores the host header, and just uses the
defaultsite.

How the request is forwarded to the origin server is a separate
question. It's always done using the URL Squid thinks was requested.

Regards
Henrik

signature.asc (316 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: vhost?

Jenn G.
Got it.Thank you very much!

2007/6/10, Henrik Nordstrom <[hidden email]>:

> lör 2007-06-09 klockan 12:25 +0800 skrev Jen mlists:
>
> > When using vhost,does it mean squid act as a domain based vitual
> > host,or real server was a domain based vitual host?
>
> It means Squid will use the Host header to figure out what the requested
> URL really is.
>
> Without vhost Squid ignores the host header, and just uses the
> defaultsite.
>
> How the request is forwarded to the origin server is a separate
> question. It's always done using the URL Squid thinks was requested.
>
> Regards
> Henrik
>
>