LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2009, 08:59 PM   #1
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Rep: Reputation: 0
Linux and Windows web servers


Hi All,

Basically I have a site hosted on an ubuntu server and I need another site hosted on my Windows server 2008 (due to .NET requirements etc) so I was wondering how I can access both these sites externally with the 1 IP address? I have a domain already pointed to my ubuntu server site, but I was wondering if I can create a virtual host in my ubuntu box to point to my Windows box? Or vice verser with IIS? Or do I have to configure dns on the ubuntu box to forward requests for the windows site name to the windows box?

Thanks in advance.
 
Old 12-01-2009, 09:22 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
unless you have a static ip, you cannot setup a dns server accessible to the net. The only way, I can think of would be to run on a different port.
 
Old 12-01-2009, 09:26 PM   #3
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Original Poster
Rep: Reputation: 0
I do have a static IP.

Temporarily I'm using port 443 for my windows website and 80 for the linux one, but I'm sure there's another way.
 
Old 12-01-2009, 09:33 PM   #4
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
dns would be the way to go
 
Old 12-01-2009, 09:35 PM   #5
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Yes but how? If I only have port 80 forwarded to the Ubuntu web server and I configure DNS on that, would I add a record associating the domain I want to use with the Windows website to the windows private IP?
 
Old 12-01-2009, 09:45 PM   #6
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
that my friend is where my knowledge of the subject ends... I have setup dns localy, but never had the web point to one. So I have to refer you to some online info. I just did a quick google search on the topic. You may have to do a little looking yourself also, but this should get you pointed in the right direction:

http://forums.devshed.com/dns-36/bet...uh-141940.html
 
Old 12-01-2009, 09:48 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
This looks like a pretty comprehensive howto; various solns are shown: http://www.yolinux.com/TUTORIALS/ApacheRedirect.html
 
Old 12-01-2009, 09:51 PM   #8
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Right so create vhosts on the linux webserver and create that html file which I can set to redirect to the private IP of my windows web server?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup Linux web servers? stay92 Linux - Server 15 04-26-2009 04:30 PM
LXer: Three reasons why GNU/Linux is better for Web servers than OS X LXer Syndicated Linux News 0 07-01-2008 07:50 PM
Looking for suggestions for book on Linux web servers fudam Linux - General 1 08-14-2007 04:07 PM
Managed Linux servers for your web hosting needs DragonSlayer48DX Linux - News 1 04-26-2007 04:24 PM
linux web servers trscookie Linux - General 2 12-26-2006 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration