Results 1 to 6 of 6
  1. #1

    Thumbs down Run Squid Behind NGINX


    I am trying to configure squid to run behind NGINX. This is the pattern I wish to configure:

    1) All request are received by NGINX
    2) Based on the requested hostname, nginx should route the request to Apache or Squid

    If the hostname is <name1> it should route to squid
    If the hostname is <name2> it should route to apache

    I tried configuring this, and the second scenario is working, that is request are being forwarded to apache. But the first scenario is not working, that is request are not properly routing to squid. It just shows the default error page (the one that is shown if you directly access squid via http on the browser), instead of serving the requested page.

    Any help is much appreciated. Thanks in advance.

  2. #2
    Join Date
    Aug 2002
    Milton Keynes
    If you already have squid - why not use that as a reverse proxy for Apache (or visa versa)?

    It seems superfluously redundant to have nginx just to switch between two domains when you have two services running which can do the same thing.

  3. #3
    Nginx is light and wouldn't take much resources compared to Squid.

    But if squid is better, I'll go for that as a reverse proxy.

    Also I need to configure both on the same IP. How do we do this in squid? I used NGINX because, it can route requests based on hostname instead of ip.

  4. #4
    Just to clarify - In short, I want to listen to port 80 for both forward and reverse proxy.

  5. #5
    Join Date
    Aug 2002
    Milton Keynes
    Try typing "squid reverse proxy tutorial" into Google or your favourite search engine. There are lots of reasonably well made tutorials, and of course if you get stuck there's also the documentation.

    Tip of the Day: sometimes people read the documentation

  6. #6
    I have tried that already. But as nothing explains how to run both a forward and reverse proxy using squid using the same ip and the same port.

Similar Threads

  1. Replies: 0
    Last Post: 06-03-2011, 04:57 AM
  2. host multiple squid proxy server with different IP address in one Squid
    By p-root in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-24-2011, 08:34 AM
  3. Nginx Admin: The Free cPanel Nginx automated installer Plugin
    By JohnCS in forum Software & Scripts Offers
    Replies: 13
    Last Post: 05-21-2011, 11:45 AM
  4. Anyone got RT 3.8.0 to run with lighttpd or nginx?
    By Darvil in forum Hosting Security and Technology
    Replies: 1
    Last Post: 09-04-2008, 09:21 AM
  5. dstinternet sucks! RUN! RUN! RUN!
    By lorif in forum Reseller Hosting
    Replies: 18
    Last Post: 09-14-2007, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts