Computing.Net > Forums > Linux > Linux http request forwarding

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux http request forwarding

Reply to Message Icon

Name: Gerrit Giliomee
Date: October 2, 2002 at 11:56:56 Pacific
OS: Redhat 7.3
CPU/Ram: 366MHz - 256Mg
Comment:

I'm running my linux box as a firewall/web server & have a couple of windows boxes on the inside that connect to the internet using the linux box as the gateway.
The Linux box is running apache and serving up a couple of html/php sites.
However one of my flatmates is developing in .NET on one of the internal boxes & he wants to have the site he's doing available to the outside world, so I want to set up the linux box to check the http header & forward certain headers to his box so the pages are served up from his box via the Linux box.
Is that possible?
Does this all make sense?
I've looked at port forwarding & that's not going to cut it cause I want the Linux box to serve up some of the port 80 request and the NT box to serve up some others...

Any help would be greatly appreciated.

-Gerrit



Sponsored Link
Ads by Google

Response Number 1
Name: dwp
Date: October 2, 2002 at 12:16:48 Pacific
Reply:

I assume you are running Apache on Linux, if so read about Virtual Hosts.


0

Response Number 2
Name: Danny Larouche
Date: October 2, 2002 at 20:34:22 Pacific
Reply:

You need to use "rewriting rules"

Based on predefined conditions, http request may be modified or forwarded.

However, as i read, you don't really want or can forward requests to the other server directly, but rather use the linux server as web proxy, right?

You may the create a rewriting-rules that direct all request for page within a directoty to a cgi. this Cgi script may use wget to retreive the page on .NET server and serve it.

www.domain.com/page.html (from server1)
www.domain.com/dir/page.html (from server2)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux http request forwarding

linux masquerading www.computing.net/answers/linux/linux-masquerading/6453.html

Linux router+Firewall www.computing.net/answers/linux/linux-routerfirewall-/15039.html

IPTABLES - Port Forwarding - help? www.computing.net/answers/linux/iptables-port-forwarding-help/20290.html