LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-10-2015, 02:33 PM   #1
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Rep: Reputation: 22
Question How to route web from different URL to different local computers, OS=Fedora/CentOS


OS: CentOS/Fedora

I got a mail from my ISP a couple of days ago saying that their customers are gonna get their
amount if public IP reduced to only one from ten hence the IPv4.
(They are going for IPv6, but there's a lot of hardware that needs to be replaced before that will work)

Right now I use about 6 or 7 of them, little depending in what state my computers are in,
down, installing, running etc.

Right now I also host a web server and that one has it's own public IP and there might be
an other later on.

One this running web server I host one fully working site and couple of others that I use to
test stuff with. These I get to work using name-based virtual hosting.
They all use port 80 so my question is, how do I get this to work if I have to put this server
behind my installed router?

-Will the name-based virtual host still work even through my port forwarding in the gateway?
(this I guess will work after the ISP change but haven't got any conclusive evidence)

If I set another machine up also running as a web server, using port 80 and also getting
it's own public IP address, I can't use port forwarding of port 80 to different local IP addresses.

-What do I need to do to get this working?
(this I know(?) won't work after the ISP change)
 
Old 04-10-2015, 03:27 PM   #2
Nemesiz
Member
 
Registered: Oct 2007
Posts: 47

Rep: Reputation: 2
Everything will work who have to work in LAN. As of external access you will have to make proxy from master web server to others LAN web servers.
 
Old 04-10-2015, 06:14 PM   #3
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
Hmm, what you mean by master web server?
Do you mean that one of the web servers is "made" master (like I 'call' is master or is it in some sort of a cluster?)
and in that one I need to setup a proxy...(to do what....)

I'm lost....

Last edited by Basher52; 04-10-2015 at 06:18 PM.
 
Old 04-11-2015, 03:50 AM   #4
Nemesiz
Member
 
Registered: Oct 2007
Posts: 47

Rep: Reputation: 2
Lets say you have 3 web servers and you open 80 port for only one of them. That one will accept all requests and depend on configuration it will respond to request or forward to others web servers (becoming proxy).

Apache proxy http://httpd.apache.org/docs/current/mod/mod_proxy.html
nginx proxy http://nginx.org/en/docs/http/ngx_ht...xy_module.html
 
Old 04-11-2015, 07:46 AM   #5
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
OK, think I got it.
Gonna read up on those
Thanks
 
  


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
Centos 7 web site seen, but not on local net butchrappe Linux - Server 8 12-14-2014 08:47 AM
Iptables: route web traffic of virtual machine through local proxy of host machine lola.hipf Linux - Networking 1 10-26-2014 07:09 PM
using WGET and escaping URL with query string(shared server web hosting CentOS) tinonetic Linux - Server 1 07-13-2010 11:27 PM
Can I route web traffic to 2 different hosts based on URL under 1 IP Address? Marshalle Linux - Networking 5 05-14-2005 03:02 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM

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

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