LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2010, 04:56 AM   #1
aclhkaclhk
Member
 
Registered: Mar 2009
Posts: 54

Rep: Reputation: 15
apache proxypass firewall nat


i have the following config:

PC -> firewall (nat) -> server 1 (apache:80) -> server 2 (apache:8600)

server 1: apache with proxypass to server 2
proxypass http://server2:8600

server 2: apache listening at 8600

the problem is that when PC accesses server1 web page, the web server log in server 2 shows only firewall address for source ip not the public ip for PC.

pls advise how to modify the proxypass to pass the public ip to server 2.
 
Old 02-20-2010, 11:04 AM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
http://roshanbh.com.np/2007/12/getti...ss-in-php.html
 
Old 02-23-2010, 01:00 AM   #3
aclhkaclhk
Member
 
Registered: Mar 2009
Posts: 54

Original Poster
Rep: Reputation: 15
i know how to get the ip address but the ip addr retrieved is firewall ip.

it seems that the proxypass only relays the firewall ip to server 2.
 
  


Reply



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
Apache - ProxyPass / Reverse Billy_bob_joe_ray Linux - Server 1 09-29-2009 11:17 AM
Apache ProxyPass doubt (ubuntu 6.10, apache 2.0) Carlos2dub Linux - Server 1 05-28-2008 03:43 AM
Apache - ProxyPass/Reverse wazh Linux - Server 2 02-18-2007 12:27 AM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 08:57 PM
Apache ProxyPass/VirtualHost question lil_drummaboy Linux - Networking 2 11-10-2004 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 PM.

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
Open Source Consulting | Domain Registration