2 servers on LAN 1 IP

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
technovative
-


Joined: 03 Jul 2008
Posts: 3

PostPosted: Sat Jul 05, 2008 1:28 am    Post subject: 2 servers on LAN 1 IP Reply with quote

I'm running Abyss X1 v2.5 on two Windows based computers connected to a single DSL line with a single dynamic IP through a Linksys BEFSX41 router. I've configured each computer with a local static IP and have setup dyndns domains. I want to host different web-sites on each machine and be able to direct clients to the correct content.

Example: domain1.com directs to local IP 192.168.1.50, and domain2.com directs to local IP 192.168.1.51.

Can I accomplish this through URL Rewriting? If so could someone explain how to do it?

I tried configuring my router to foward port 80 to both machines but that didn't work. My thinking was if it did then all I would have to do is store the web-sites in different root directories on each machine. Then point each domain name to the respective directory.
Back to top View user's profile Send private message
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Fri Jul 11, 2008 5:00 pm    Post subject: Reply with quote

the way i do it:

1. have 2 domains

2. router will do port mapping, if port 80, go to 1st machine, if port 81, go to port 80 on 2nd machine

3. first machine will accept first domain

4. first machine will redirect second domain to second_domain.com:81

if the other site is blocked from accessing port 81 outside, they will never reach 2nd machine.

i'm sure other people will have better solution, but not with url rewritting anyway.
Back to top View user's profile Send private message
technovative
-


Joined: 03 Jul 2008
Posts: 3

PostPosted: Fri Jul 11, 2008 8:22 pm    Post subject: Reply with quote

badai wrote:
the way i do it:

1. have 2 domains

2. router will do port mapping, if port 80, go to 1st machine, if port 81, go to port 80 on 2nd machine

3. first machine will accept first domain

4. first machine will redirect second domain to second_domain.com:81

if the other site is blocked from accessing port 81 outside, they will never reach 2nd machine.

i'm sure other people will have better solution, but not with url rewritting anyway.


Thanks, this is a very helpful suggestion that works allowing me to have my network configured the way that I was hoping to.
Back to top View user's profile Send private message
realjobe
-


Joined: 18 Oct 2005
Posts: 8

PostPosted: Fri Aug 20, 2010 4:50 pm    Post subject: Reply with quote

but how can this be done with URLRewritting so that ip:80 and ip:81 are virtuals wanIP/port81 and winIP/port80 ?
Back to top View user's profile Send private message
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Fri Aug 20, 2010 6:08 pm    Post subject: Reply with quote

you want to do it with URL rewriting. what is URL rewriting? why you want to do something that you might have no idea what it is? because it sound cool?

it was written there on my post, at the last line. you can read, right?

now go read about URL rewriting.

realjobe wrote:
but how can this be done with URLRewritting so that ip:80 and ip:81 are virtuals wanIP/port81 and winIP/port80 ?
Back to top View user's profile Send private message
realjobe
-


Joined: 18 Oct 2005
Posts: 8

PostPosted: Fri Aug 20, 2010 6:47 pm    Post subject: Reply with quote

...

Last edited by realjobe on Fri Aug 20, 2010 6:52 pm; edited 1 time in total
Back to top View user's profile Send private message
realjobe
-


Joined: 18 Oct 2005
Posts: 8

PostPosted: Fri Aug 20, 2010 6:48 pm    Post subject: Reply with quote

...

Last edited by realjobe on Fri Aug 20, 2010 6:49 pm; edited 1 time in total
Back to top View user's profile Send private message
realjobe
-


Joined: 18 Oct 2005
Posts: 8

PostPosted: Fri Aug 20, 2010 6:48 pm    Post subject: Reply with quote

No need to be rude, Just can't make the URL Rewriting to work, that's all.

I created URL Rewriting rule that simply redirects MyDNS/Redirect to google.fi and it worked using External Redirection.

When using Internal Redirection, nothing works.
I need to "NAT" my LAN service 192.168.3:81 to my DNSEntry/Service. DnsEntry:80/ is already in use.
I think you can now read the context and realise that I might have several LAN services in different ports that needs to published to port 80 that is NATted to WANIP..
Back to top View user's profile Send private message
wrc-racer45
-


Joined: 26 Aug 2010
Posts: 1
Location: Россия

PostPosted: Thu Aug 26, 2010 11:09 am    Post subject: Reply with quote

badai wrote:
the way i do it:

1. have 2 domains

2. router will do port mapping, if port 80, go to 1st machine, if port 81, go to port 80 on 2nd machine

3. first machine will accept first domain

4. first machine will redirect second domain to second_domain.com:81

if the other site is blocked from accessing port 81 outside, they will never reach 2nd machine.

i'm sure other people will have better solution, but not with url rewritting anyway.


Thanks
_________________
Самое интересное о ралли
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group