LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-08-2015, 02:18 PM   #1
crazyraisin
LQ Newbie
 
Registered: Dec 2014
Posts: 14

Rep: Reputation: Disabled
what am I setting up incorrect?


I got this current setup, where I have a physical server behind a Comcast router with port 80 forwarded. In that physical server I got several Virtualboxes running with Centos 7 also. Each Virtualbox has its own domain but they are not reachable. One domain is: adivix.com

I have checked locally and NGiNX is running correctly where I see the test page.

This is a graphic representation of the setup:

http://i.imgur.com/qxpVqNR.png

Can someone please advise in what I am missing?
 
Old 01-08-2015, 04:47 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,635

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
you DO HAVE a business cable connection ? right
http://business.comcast.com/internet.../plans-pricing
for running 4 servers - the deluxe 50 or 75 should do

you can not run a server on a HOME xfinity set up
-- check your CONTRACT you signed

Last edited by John VV; 01-08-2015 at 04:51 PM.
 
Old 01-08-2015, 05:39 PM   #3
crazyraisin
LQ Newbie
 
Registered: Dec 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Yeah this is a business line, one IP. But how do I have the proper domain route to the correct IP address?

the question is how can i properly setup NAT in CentOS so it points to the correct VM for each domain?

Last edited by crazyraisin; 01-08-2015 at 05:48 PM.
 
Old 01-09-2015, 02:11 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,504

Rep: Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572
Set up a "reverse proxy" server and use that to direct different domain requests to the internal IPs of the virtual servers.

You could use HA-PROXY for this as it allows you to direct to different "back-ends" based on things like the requested domain.
 
Old 01-09-2015, 03:47 PM   #5
crazyraisin
LQ Newbie
 
Registered: Dec 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Well I got NGiNX running on the physical server, I googled around to find a tutorial on how to make the proper changes to NGiNX conf files to point a domain request to the proper internal IP address of the VM but have not found anything. Does anyone have a tutorial for that?
 
Old 01-09-2015, 04:09 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,635

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
did you buy the domain names ?

if not you can use something like "no-ip.com "
no-ip has a free account but i think it is only up to TWO names
they can map the ip address to a name
free account has your name like this
" something.no-ip.com "
 
Old 01-09-2015, 05:46 PM   #7
crazyraisin
LQ Newbie
 
Registered: Dec 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
yes i purchased all the domains, pointed the domains to my public IP which they properly resolve to it is internally I got the issue. The physical server to which all connections go to is running NGINX and I have no idea how to properly configure it to route the requested domains to the proper virtual machine.

If it helps I am also running Ajenti.
 
  


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
su: incorrect password MrHyde77 Linux - Software 5 01-06-2009 10:41 AM
Incorrect Mouse, Incorrect Keymap, and Trapped in X Kenji Miyamoto Debian 8 08-24-2005 02:42 PM
incorrect TV card Johng Linux - Hardware 3 07-06-2004 11:12 AM
Incorrect Video Setting wraith106 Linux - Hardware 6 08-22-2003 10:26 AM
Login incorrect Hawama Jabeen Linux - Networking 7 09-17-2001 07:48 AM

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

All times are GMT -5. The time now is 09:28 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
Open Source Consulting | Domain Registration