LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
reverse proxy config help


Hello,

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:

website1.domain.com
mail.domain.com

On the firewall I have created two nat rules
one Http who goes to 192.168.50.20 (website1.domain.com)

One https who goes to 192.168.3.3 (mail.domain.com)

Now the problem is when you use http://mail.domain.com you arrive also website1.domain.com 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 http://mail.domain.com or https://mail.domain.com he should be redirected to 192.168.3.3

and http://website1.domain.com https://website1.domain.com should arrive to 192.168.50.20


For the moment I have got only the https://mail.domin.com working

I have this in my squid.conf


http_port 80 accel vhost

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



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


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

Anyone an idea how to set this up?

Thank you in advance
 
Old 10-06-2009, 03:36 AM   #2
Tux-Slack
Member
 
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.
 
  


Reply


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 10:31 PM
Reverse Proxy??? jantman Linux - Server 2 12-07-2007 06:01 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM
reverse proxy? bwall Linux - Newbie 1 11-22-2005 07:42 PM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 09:12 AM


All times are GMT -5. The time now is 07:58 AM.

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