+ Post New Thread
Results 1 to 2 of 2
*nix Thread, Reverse Proxy with squid in Technical; Im trying to setup a reverse proxy so that i can have multiple web servers on my network. I currently ...
  1. #1
    Arcath's Avatar
    Join Date
    Feb 2009
    Location
    Lancashire
    Posts
    972
    Thank Post
    102
    Thanked 116 Times in 101 Posts
    Rep Power
    74

    Reverse Proxy with squid

    Im trying to setup a reverse proxy so that i can have multiple web servers on my network.

    I currently have 2 servers:

    10.0.0.45 - New Server Webserver/Squid Proxy
    10.0.0.40 - Old Server Webserver
    i was able to make it so that all traffic on port 1234 on the new server (10.0.0.45) was sent to 80 on the old server (10.0.0.40). but im now having issues when trying to forward domains.

    I want to forward like this:

    *.arcath.net -> 10.0.0.40
    londinium.arcath.net -> 10.0.0.45
    support.ed-itsolutions.com -> 10.0.0.40

    Im not too bothered if i have to manually add all the subdomains instead of *.

    Can anyone give me a config example to do this?

  2. #2
    Arcath's Avatar
    Join Date
    Feb 2009
    Location
    Lancashire
    Posts
    972
    Thank Post
    102
    Thanked 116 Times in 101 Posts
    Rep Power
    74
    right my config to do this is:

    Quote Originally Posted by squid.conf
    http_port 1337 defaultsite=londinium.arcath.net vhost
    cache_peer 10.0.0.45 parent 80 0 no-query originserver name=londinium
    cache_peer_domain londinium londinium.arcath.net
    cache_peer 10.0.0.40 parent 80 0 no-query originserver name=whitefall
    cache_peer_domain whitefall Arcath.net blog.arcath.net .arcath.net .ed-itsolutions.com



    acl all src 0.0.0.0/0.0.0.0
    acl localhost src 127.0.0.1/255.255.255.255
    acl to_localhost dst 127.0.0.0/8
    acl SSL_ports port 443 # https
    acl SSL_ports port 563 # snews
    acl SSL_ports port 873 # rsync
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 # https
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl Safe_ports port 631 # cups
    acl Safe_ports port 873 # rsync
    acl Safe_ports port 901 # SWAT
    acl web dstdomain 10.0.0.40
    acl purge method PURGE
    acl CONNECT method CONNECT

    http_access allow all
    http_access allow localhost

SHARE:
+ Post New Thread

Similar Threads

  1. Reverse Proxy?
    By TechSupp in forum Windows
    Replies: 2
    Last Post: 23rd February 2010, 10:12 PM
  2. Nginx Reverse Proxy
    By clarky2k3 in forum Web Development
    Replies: 5
    Last Post: 3rd December 2009, 02:43 PM
  3. RM EasyLink reverse Proxy Solution
    By KWIK in forum Windows
    Replies: 0
    Last Post: 11th March 2008, 03:26 PM
  4. Reverse Proxy and Moodle
    By wesleyw in forum How do you do....it?
    Replies: 3
    Last Post: 11th June 2007, 01:49 PM
  5. reverse proxy ajax apps
    By CyberNerd in forum Web Development
    Replies: 3
    Last Post: 15th June 2006, 07:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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