configuring CentOS to become a webserver

Dear experts,

I wish to run a web server on my own. I do a web server setup internally. I can simply type the domain name or ip address which can lead me to my web page. I have the domain name server which I was able to assign my web server under the same domain. All this is under the IP 192.168.22.0/24 and connected to interface 1 (one of the port on firewall).

Now I wish to move web sever to a different subnet (192.168.3.0/24) and this subnet will be connected to interface 5.
I wish to allow external users to access my web page via port 80 to subnet 192.168.3.0 and allows the web server on 192.168.3.0 to communicate with sql server from 192.168.22.0. What I need to do in order to accomplish this? Will I need to buy a domain name for my web server or I can simply use my external IP? If I use my external IP will it be safe? Thanks.
Kinderly WadeprogrammerAsked:
Who is Participating?
 
arnoldConnect With a Mentor Commented:
you have combined multiple things into this question.

Layout of your network.
the centos box needs the IP.
The routing either the system is connected to multiple networks, or your router will need to deal with access to other segments.

External router port forwarding to the web server IP port 80.
0
All Courses

From novice to tech pro — start learning today.