AW: AW: [squid-users] reverse-proxy for multiple domains

This is a discussion on AW: AW: [squid-users] reverse-proxy for multiple domains within the Squid Users forums, part of the Web Server and Related Forums category; hi, i guess i mixed something up or my english is not as good as it shut be. i read ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2004
martin.mueller@stadt.wolfsburg.de
 
Posts: n/a
Default AW: AW: [squid-users] reverse-proxy for multiple domains

hi,

i guess i mixed something up or my english is not as good as it shut be. i
read this manual http://squid.visolve.com/white_paper...seproxy.htm#ee
and thought: "this is what you need."

we got two webservers an differnet ports and of course different ip's.
i wannted to put a reverse-proxyx in front of them to cache some requests
but i think this is nor what i mentionted in the postings so far?

regards
martin

> -----Ursprungliche Nachricht-----
> Von: Henrik Nordstrom [mailto:hno@squid-cache.org]
> Gesendet: Donnerstag, 26. Februar 2004 13:57
> An: martin.mueller@stadt.wolfsburg.de
> Cc: hno@squid-cache.org; squid-users@squid-cache.org
> Betreff: Re: AW: [squid-users] reverse-proxy for multiple domains
>
>
> On Thu, 26 Feb 2004 martin.mueller@stadt.wolfsburg.de wrote:
>
> > Why httpd_accel_port 0?
> >
> > cause i read it somewhere i don't remember anymore. i

> thought the port must
> > be zero in connection with the virtual httpd_accel_host.

>
> Enabling httpd_accel_port virtual mode enables port-based
> virtual hosts.
>
> > do i have to change it to the port of the web-server?

>
> This is required.
>
>
> These directives control how Squid reconstructs the complete
> requested URL
> on accelerated requests
>
>
> httpd_accel_uses_host_header tells Squid to use the Host
> header of the
> request if available.
>
> httpd_accel_host tells what host name to use if
> httpd_accel_uses_host_header is not enabled or if the request
> does not
> have a Host header.
>
> httpd_accel_port tells what port to use in the reconstructed
> url. If 0
> then the port number of the http_port will be used.
>
>
> So if you have
>
> http_accel_host virtual
> http_accel_port 0
> http_accel_uses_host_header off (or request without Host header)
>
>
> http_port 1.2.3.4:8888
>
> then the URL as seen by Squid will become
>
> http://1.2.3.4:8888/path/to/file
>
> and this is the URL Squid will try to retreive, which most
> likely is not
> what you want unless you are using a redirector to fix up
> this URL into
> something which makes sense.
>
>
> The recommended accelerator setup for Squid-2.5 is
>
> # Host to assume if there is no Host header
> httpd_accel_host your.main.domain.name
>
> # Normal web port
> httpd_accel_port 80
>
> # Domain based virtual host support
> httpd_accel_uses_host_header on
>
> # Required for RFC compliance
> httpd_accel_with_proxy on
>
>
>
> Then add the accelerated hostnames to /etc/hosts with the
> addresses of the
> real web servers, and configure Squid access controls to
> limit what may be
> accessed
>
> # Base ACLs
> acl all src 0.0.0.0/0
> acl port80 port 80
> acl http proto http
>
> # Give access only to our accelerated servers
> acl ourwebsites dstdomain accelerated.web.name
> other.accelerated.web.name
> http_access allow http port80 ourwebsites
>
> # Deny all other uses
> http_access deny all
>
>
>
> For Squid-3 the setup is a little different, but Squid-3.0 is not yet
> released so more on that later.
>
>
> Regards
> Henrik
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0