M
M
MdaUZH2016-05-08 14:26:24
PHP
MdaUZH, 2016-05-08 14:26:24

What happens after entering the site address?

Hello.
What happens while a person enters the site address and the page is displayed to him?
1. determining the server ip using dns
, then we make a request, which one, where, please tell me where to read about it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Matvey Mamonov, 2016-05-08
@MdaUZH

Standard Request-Response loop.
You go to example.com.
example.com is the domain. Any domain is tied to a specific IP address of some server. Accordingly, you send a request to this server, which "knocks" on the 80th port (the standard port for HTTP requests. For HTTPS, for example, 443). Your request arrives at the server, where it is processed by a Web server listening on the specified port (in production, usually 80, again). Next, this web server sends your request to the application server (in your case, apache, judging by the question tags). Apache decides what to do with your request, calls certain PHP executables, and does the chore of "compiling" the requested page, in short. After that, PHP "substitutes" the necessary data in the templates (if any) and sends the finished HTML page back to the client (your browser), where the browser collects all the css,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question