LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2006, 04:54 AM   #1
swilhelm
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Question Route mysite.com/something Wan to Lan but Still have Wan answer mysite.com requests.


Hi, I want to route mysite.com/something from WAN apache sever to LAN apache server on windows xp box while mysite.com is still answered by wan server runing linux Cent os v4.3 (i.e. RHEL4).

i'm running a server on Cent os V4.3. with a single public ip address: 70.90.xxx.xx. This server acts as a Router, Firewall, Web Server, Mail Server, anything else you can think of server - you get the idea.

Here's what i'm trying to do:

1. you go to mywebsite.com and the cent os v4.3 server loads the Web Site on it's hard drive. This part works fine.

2. you go to mywebsite.com/something and the server loads a web site from an apache Web Server running on a lan windows xp client machine. This part does not work. let me explain:

Internal Client Machine is running windows xp with apache and mysql and php. it's address is 192.168.x.xxx. it gets it's address through the cent os v4.3 server which has two network cards one for public address (eth0 70.90.xxx.xx) and one for lan address 192.168.x.x. which then assigns ip address to client machine.

Thank you so much for any help,

Sammy

ps. sorry for bad english - trying to learn english and linux

Last edited by swilhelm; 07-31-2006 at 05:20 AM.
 
Old 07-31-2006, 01:39 PM   #2
cs.cracker
LQ Newbie
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
I also want to do something similar. I currently have a free domain pointing to my internet IP, lets say subdomain.domain.net, and would like to make subomains of it or folders after it referring to other computers on my local network. For example:

subdomain.domain.net --> server
box1.subdomain.domain.net --> box 1
box2.subdomain.domain.net --> box 2

or

subdomain.domain.net --> server
subdomain.domain.net/box1 --> box 1
subdomain.domain.net/box2 --> box 2

My internal network is your typical private, routed network, like so:
Code:
                         Internet
                             |
                   (subdomain.domain.net)
                       Linksys Router
                       (192.168.x.1)
                             |
      ------------------------------------------------------
      |                |                 |                 |
(192.168.x.100)  (192.168.x.101)   (192.168.x.102)   (192.168.x.2)
    box1             box2              box3           server (DMZ)
Is this possible? My 'server' is currently running Trustix Secure Linux, and it is my DMZ host for my local network. I can install any server applications needed, be it DNS, routing, firewall, whatever.

Last edited by cs.cracker; 07-31-2006 at 01:53 PM.
 
Old 08-02-2006, 02:57 PM   #3
swilhelm
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Talking Solved!

I just changed the port that apache is listening on and forward it through the router. So you just type in mydomain.com:1404 if you want to go to internal web server or just mydomain.com if you want to go to main web server.


Internet
----------
|
|
Server/firewall/web server port 80
---------------
|
|
\
\
\
Apache www port 1404


Thanks, For Your Help!

Sammy
-------------------------------------------------
I'd rather be judged by 12 than carried by 6
 
  


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
httpd problems - blank web page shows up when access from outside of internet LAN wk4997 Linux - Networking 2 01-21-2006 09:59 AM
IPTABLES How to access to web server on gateway from LAN? kozaki Linux - Networking 4 08-26-2005 11:27 AM
Can access local LAN Webserver, but not Internet spaceuser Debian 11 08-23-2005 12:54 AM
cannot access web server from LAN puding Linux - Newbie 11 09-07-2004 12:06 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:25 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