LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 10-25-2006, 08:07 AM   #1
sraju
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
apache port forwarding.


Hi,


I have a web service running on linux box running on port 14001. I want Apache to forward any request coming to port 80 to be forwarded to 14001 and vice versa.

Is it possible. I dont want to configure IP tables to do port forwarding as any requesting coming to this IP will validate himself against IP table.

Thanks in advance.
Raju.
 
Old 10-25-2006, 08:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
well apache doesn't port forward but it can use the proxypass and reverseproxypass directives to do internal (or external) http proxying to other servers on other ports.
 
Old 10-25-2006, 08:22 AM   #3
sraju
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanx a ton.

Raju
 
Old 10-25-2006, 11:36 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
You should be able to accomplish this with mod_proxy in Apache.

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
 
Old 10-26-2006, 04:00 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
that's what i said, hick! most of the mod_proxy config is for the more advanced proxying, and the basics being requested here are all done with the two directives in a virtualhost and nothing else.
 
Old 10-26-2006, 06:16 AM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
Quote:
Originally Posted by acid_kewpie
well apache doesn't port forward but it can use the proxypass and reverseproxypass directives to do internal (or external) http proxying to other servers on other ports.
I don't see mod_proxy mentioned there?

And stop calling me hick!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache port forwarding kg4ysy Linux - Software 2 06-14-2006 01:57 PM
port forwarding apache from 80 to 8080 chess Linux - General 11 09-27-2005 02:21 PM
Port Forwarding for Apache IlyaZ Linux - Networking 14 05-15-2005 04:41 AM
Help with apache server dir and port forwarding leemoreau Linux - Software 13 03-25-2005 09:56 AM
seperate apache, port forwarding kires Linux - General 2 04-24-2002 12:37 AM


All times are GMT -5. The time now is 05:34 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration