Networking Forums

Networking Forums > Computer Networking > Linux Networking > Redirect from Linux Webserver to Win XP

Reply
Thread Tools Display Modes

Redirect from Linux Webserver to Win XP

 
 
crjunk@earthlink.net
Guest
Posts: n/a

 
      12-13-2005, 08:17 PM
I'm a newbie when it comes to Linux and networking, so I'll go
ahead and apologize for my ignorance up front.

At home, I've got a web server running Apache on Linux Fedora. I
have everything up and running on it without any problems. What I'd
like to do (if this is possible) is to send the user to my XP box if
they go to a certain directory.

For instance, the user goes to http://www.MyAmazingWebPage.com. They
are currently on the Linux web server. If they user clicks on a link
and goes to http://www.MyAmazingWebPage.com/XPtest/, they will be
viewing web pages from the XP machine.

Inside my network, the Linux box is on 192.168.0.2 and I have port 80
open. The XP box is on 192.168.0.1.

First of all, can this be done? If so, how do you go about doing this?

Thanks,
CR Junk

 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      12-14-2005, 04:41 PM
(E-Mail Removed) wrote:
> I'm a newbie when it comes to Linux and networking, so I'll go
> ahead and apologize for my ignorance up front.
>
> At home, I've got a web server running Apache on Linux Fedora. I
> have everything up and running on it without any problems. What I'd
> like to do (if this is possible) is to send the user to my XP box if
> they go to a certain directory.
>
> For instance, the user goes to http://www.MyAmazingWebPage.com. They
> are currently on the Linux web server. If they user clicks on a link
> and goes to http://www.MyAmazingWebPage.com/XPtest/, they will be
> viewing web pages from the XP machine.
>
> Inside my network, the Linux box is on 192.168.0.2 and I have port 80
> open. The XP box is on 192.168.0.1.
>
> First of all, can this be done? If so, how do you go about doing this?
>
> Thanks,
> CR Junk
>

There is no way to tell a router that port 80 TCP traffic should be
routed to 192.168.0.2 for some URLs and to 192.168.0.1 for others.

I can think of two possible solutions:

1. run a webserver on a port other than 80 on your XP box (and redirect
requests appropriately)

2. Mount your XP files on your Linux filesystem (through smbmount)

Robert
 
Reply With Quote
 
ge0rge
Guest
Posts: n/a

 
      12-14-2005, 09:01 PM
(E-Mail Removed) wrote:
> I'm a newbie when it comes to Linux and networking, so I'll go
> ahead and apologize for my ignorance up front.
>
> At home, I've got a web server running Apache on Linux Fedora. I
> have everything up and running on it without any problems. What I'd
> like to do (if this is possible) is to send the user to my XP box if
> they go to a certain directory.
>
> For instance, the user goes to http://www.MyAmazingWebPage.com. They
> are currently on the Linux web server. If they user clicks on a link
> and goes to http://www.MyAmazingWebPage.com/XPtest/, they will be
> viewing web pages from the XP machine.
>
> Inside my network, the Linux box is on 192.168.0.2 and I have port 80
> open. The XP box is on 192.168.0.1.
>
> First of all, can this be done? If so, how do you go about doing this?


Yes. It can be done. For URL rewriting, read mod_rewite
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
The above documentation is extensive and complicated but the answer is
there. In particular, pay attention to the RewriteRule directive of the
form -
^/somepath/(.*) http://otherhost/$1 [P]

where in your case somepath would be XPtest and otherhost can be
replaced by 192.168.0.1

You should also read about ProxyPassreverse directive and about the
mod_proxy module to set up your linux box as a reverse proxy server.

--
It's the theory of Jess Birnbaum, of Time magazine, that women with
bad legs should stick to long skirts because they cover a multitude of
shins.
 
Reply With Quote
 
crjunk@earthlink.net
Guest
Posts: n/a

 
      12-16-2005, 01:00 PM
Thanks for the information!


CR Junk

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
webserver to webserver access via VPN ton de w Windows Networking 3 01-17-2007 08:12 PM
Unicode Character Support on Linux Webserver (SHIFT_JIS) lefebvre@iwavesolutions.com Linux Networking 1 01-03-2007 11:20 PM
DI-604 webserver ragespot@gmail.com Windows Networking 0 06-16-2006 03:05 PM
Linux Server v/s Windows Server ( WebServer - LAMP v/s WAMP) Yogee Linux Networking 2 11-30-2005 04:40 PM
Setup Linux Apache webserver KaaDee Linux Networking 1 01-14-2004 11:01 PM



1 2 3 4 5 6 7 8 9 10 11