Welcome! Log In Create A New Profile

Advanced

squid-like setup?

Posted by Beeblebrox 
squid-like setup?
November 20, 2011 03:46PM
Unlike most subscribers posting here, I am just interested about my PC and I am not running a large network. I am also very new at setting up http servers, so very noob at this.
I want to find a simple solution to my following problem:
1. Use a caching proxy on 8080 which all browsers will redirect to. No browser will need to keep cache, but nginx will keep central cache pool.
2. Proxy will also filter (on port 8080) all http & ftp requests through a rule-set to block adds, cookies etc. I think it is possible to make a regular http server running mod_proxy to work like privoxy for clients, provided the filter rule set is loaded / specified correctly?
3. Proxy will forward all socks requests, fter filetr, to Tor port 9001 (nginx will have 2 listen ports one with socks forward, one direct)
4. http server will also service webdav + other services where total load is light. (I already have a good idea how to set these up from the wiki)

I am asking this because I want to have one http service running everything instead of several servers / services for each purpose. I am running FreeBSD-9-RC2, btw.
Re: squid-like setup?
November 21, 2011 10:09AM
EDIT: Any partial answer is also appreciated! So please feel free to offer advice on even a single item (like: not sure about the other questions, but for #2 you can do as such ....) - thanks.



Edited 1 time(s). Last edit at 11/21/2011 10:09AM by Beeblebrox.
Re: squid-like setup?
December 09, 2011 01:36AM
From this thread in the forums: http://forum.nginx.org/read.php?2,214606,215664#msg-215664

Seems like NGINX does not do the setup I described very well and delivers stale cached files - I quote:
>------------------------------------
> That's not currently doable with nginx. Proxy_cache_use_stale directive works when you've got your backend down.
> What you want is more like doing a triggered update of the content in background and it's not possible at this time.
>------------------------------------

But confusingly, another post on thread states:
>------------------------------------
>proxy_cache_use_stale updating does soemthing similar.
>You may could do something like (from the docs)
>proxy_cache_bypass $http_my_secret_header;
>without a corresponding proxy_no_cache and that should make nginx go to the origin server but cache the results.
>------------------------------------

As mentioned in the referenced thread, I am already looking at Varnish also.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 284
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready