P
P
pareshok2020-04-15 08:32:57
Domain Name System
pareshok, 2020-04-15 08:32:57

Is it possible to display an html page when asked for a domain name associated with a computer?

The service of an external IP address is activated on my home provider, and there is a domain name directed to this IP, that is, if some server is running (for example, the same Open Server), then when entering this domain in the browser, a person will see something what is open for this domain in Open Server. Is it possible to make it so that when the server is not running, an html page located somewhere on my computer is displayed at this address?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2020-04-15
@pareshok

No impossible. Something must handle the request on port 80.

A
Abr_ya, 2020-04-15
@Abr_ya

Is it possible to make it so that when the server is not running, an html page located somewhere on my computer is displayed at this address?

No. In order for the client to receive the page, the server must return it. To do this, he must listen to the standard port - wait for a request to it.
But. You can put-choose-create another server that will weigh tens or even hundreds of times less than the monster OpenServer, which is a combine for development in PHP + MySQL + ... , and put this "baby" on autostart when system start, for example.
True, in this case, when you start OpenServer, it will swear to you that someone has already taken its port.

I
iserdmi, 2020-04-15
@iserdmi

You can dig towards caching and CloudFlare. It will be necessary to direct the NS of the domain to CloudFlare. In the DNS records on CloudFlare, register just your IP as an A record. And force CloudFlare to cache your HTML page. Then, in theory, it will continue to be shown even when the computer is turned off. https://support.cloudflare.com/hc/en-us/articles/3...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question