Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-06-2009, 03:03 AM   #1
LQ Newbie
Registered: May 2006
Posts: 8

Rep: Reputation: 0
reverse proxy config help


I need to setup a reverse proxy between internet and two internal websites.

The problem is that I have only one public ip wich points on the internet to several subdomains:

On the firewall I have created two nat rules
one Http who goes to (

One https who goes to (

Now the problem is when you use you arrive also and vica versa, which is normal.

I have setup a reverse proxy (version 3.0) who should redirect the requests to the correct internal site.

so if anyone should use or he should be redirected to

and should arrive to

For the moment I have got only the working

I have this in my squid.conf

http_port 80 accel vhost

cache_peer parent 80 0 no-query originserver default
acl dstserver1 dstdomain
http_access allow all
http_access allow dstserver1
cache_peer_access allow dstserver1
cache_peer_access deny all

https_port 443 accel vhost cert=/usr/clientname/CertAuth/testcert.cert key=/usr/clientname/CertAuth/testkey.pem version=1

cache_peer parent 443 0 no-query originserver ssl sslversion=1 sslflags=DONT_VERIFY_PEER
acl dstserver dstdomain
http_access allow all
http_access allow dstserver
cache_peer_access allow dstserver
cache_peer_access deny all

Anyone an idea how to set this up?

Thank you in advance
Old 10-06-2009, 04:36 AM   #2
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Sorry, I don't know how to help you with squid, but why don't you use Apaches built-in mod_proxy and configure the reverse proxy there? It's much easier to do it there.

If you're interested, lemme know and I'll help you configure it there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
reverse proxy and MOSS tyampoo Linux - Server 1 09-17-2009 11:31 PM
Reverse Proxy??? jantman Linux - Server 2 12-07-2007 07:01 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 06:00 PM
reverse proxy? bwall Linux - Newbie 1 11-22-2005 08:42 PM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 10:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration