How to attach a domain name to your hosting(server)?

Now there is Windows Server 8, it is to spin website hosting with domain name is a static address from the ISP. Everything works, but I don't know how I was doing.
And now we need to put in parallel on a separate machine Windows Server 2012 R2 using Hyper-V to deploy a site on 1C-Bitrix, of course, with access via the Internet. To deploy Bitrix to Hyper-V have already happened, but it can be accessed only by the local address. How to make the secure domain and access from the Internet? What are the stages of action? If a lot to explain, then briefly show the direction of the study and a link to the material for study.
1 answer
March 19th 20 at 09:06
Solution
To shoot the port on the server (IP -> Firewall -> NAT)
add action=netmap chain=dstnat dst-port=80 in-interface=***WAN_INTERFACE*** protocol=tcp to-addresses=***IP_SERVER*** to-ports=80
add action=netmap chain=dstnat dst-port=443 in-interface=***WAN_INTERFACE*** protocol=tcp to-addresses=***IP_SERVER*** to-ports=443


If you have two services on different IP (inside the network) respectively, you need to provide processing and proxying requests - NGINX
I realized on mikrotik? - Adella.Kun commented on March 19th 20 at 09:09
These commands are for mikrotik router, before use, replace ***WAN_INTERFACE*** and ***IP_SERVER*** on the interfaces/addresses - Asia.Dickinson commented on March 19th 20 at 09:12
thank you, the expense of replacement, it's understandable. And likewise to make it through the winbox interface or through the line quicker? - Adella.Kun commented on March 19th 20 at 09:15
@Adella.Kun, the IP->Firewall->NAT->Add
All the names of the parameters in the string correspond to the fact that you will see in the same Winbox or the web interface, shouldn't be a problem.

To understand
gnmta0ebff8pyugxjdyhnkqsca0.png - Asia.Dickinson commented on March 19th 20 at 09:18
@Asia.Dickinson, Thank you very much - Adella.Kun commented on March 19th 20 at 09:21
@Asia.Dickinson, and that is a specialist in Mikrotik wrote that netmap is not intended for port forwarding, read the answer and comments, I there asked a question. - eleanore_Abernathy91 commented on March 19th 20 at 09:24
@eleanore_Abernathy91, in the context of "normal" port forwarding it doesn't matter, but in principle with your observation fully agree but in this case everything will work.
Problems will arise if this scheme is WAN->router->VPN->router->host) - Asia.Dickinson commented on March 19th 20 at 09:27
so, ip is connected, but now how to associate my address with the port to the domain for example domain2.ru - Adella.Kun commented on March 19th 20 at 09:30
@Asia.Dickinson, @eleanore_Abernathy91, Tell me? - Adella.Kun commented on March 19th 20 at 09:33
@Adella.Kun, to register with the Registrar of the domain a-record for this domain on your white static IP. - eleanore_Abernathy91 commented on March 19th 20 at 09:36

Find more questions by tags Windows ServerHyper-VComputer networksHostingDomain name system