[RUBY] How the website is displayed on the screen

How the website screen is displayed

I would like to summarize the contents that seemed to be understood but not fully understood.

Important words

--IP address --Domain --DNS server

Basic understanding

https://qiita.com/questions/new For example, the URL you are currently accessing looks like this!

In this, "https" This part is called a scheme. Simply put, how do you communicate? It means that. Isn't it mostly https now?

By the way, it is often said that "this site is not safe" on smartphones. If http is used instead of https!

What is https? When data is sent, it is encrypted. There's a little bit of security about http that says the communication isn't encrypted!

It is safer if the data is encrypted when it is extracted.

Next, the "qiita.com" part is called the domain! A domain is simply like an address on the Internet!

There is a rule that this must not be covered by other domains.

Then "question / new" This is a path. Represents where to access in the domain! !!

Now you have a quick idea of what the URL stands for!

Main subject

From here, I would like to explain how the web is projected on the screen.

① First, access the URL with the client! (A client is a terminal. It mainly refers to smartphones and PCs.)

(2) The client asks the DNS server to tell us the IP address of this domain! !! Oops, various words came out here lol

I will explain one by one. An IP address is like a number assigned to access your network. You can access the net with either this IP address or URL!

A DNS server is a server that can look up an IP address for a domain!

In other words, when the client tells the IP address of qiita.com (domain) and throws it to the DNS server. The DNS server returns the IP address to the client side like "XXX. +++. +++ .---".

③ The client connects to the web server with that IP address! It also asks the server to open the question / new page in the path part!

④ As a result, the web server issues HTML to the client and the URL screen is displayed!

It's been a long run, but the above is the mechanism until the web service is displayed on the screen!

Recommended Posts

How the website is displayed on the screen
How to solve the problem that the website image is not displayed after deploying to heroku on Rails 5
How to display products by category on the same list screen
Display an image on the base64 screen
How to change the timezone on Ubuntu
How to pass the value to another screen
When continuous line breaks are displayed on the screen, the line breaks are combined into one.
[Docker] How to build when the source code is bind-mounted on the container
[Cloud9] Yay! You ’re on Rails! Is not displayed in the rails tutorial
[Android] Get the tapped position (coordinates) on the screen
[Android] List all setting items on the setting screen
The devise error message is not displayed properly.
GoogleMap is not displayed until the browser is reloaded
[Heroku] How to solve when an error is displayed on git push heroku master
[Java] Memo on how to write the source
[Java] Something is displayed as "-0.0" in the output
When the project is not displayed in eclipse
Solved the problem that profile and logout were not displayed on the screen after signup.
[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
How far is the correct answer to divide the process?
How to remove the underline displayed by Rails link_to
Import the instance and use it on another screen
How to move to the details screen by clicking the image
[Ruby on Rails] How to change the column name
[Android Studio] [Java] How to fix the screen vertically
Install MySQL 5.6 on CentOS6 [How to specify the version]
[Error] The app is not displayed in the production environment
How is the next value of the Time object correct?
Screen recording on Ubuntu 20.04
How mrbgem is "embedded"
When changing user information using devise Settings on the edit screen when the password is not saved
How to transition from the [Swift5] app to the iPhone settings screen
I want to use screen sharing on the login screen on Ubuntu 18
How to disable Set-Cookie from API on the front side
[Note] About the Fizz_Buzz problem (How Ruby on Rails works)
How to install JDK 8 on Windows without using the installer
Time is wrong with the application launched on the Docker container
How to switch Java in the OpenJDK era on Mac
How to run React and Rails on the same server
How to check the database of apps deployed on Heroku
[Android] Try to display the effect on the touched part of the screen, which is common in games.
[Ruby on Rails] Cookie is used and displayed only once at the first access (using jquery.cookie.js)
[Rails carrier wave] How to not transition to the error screen even if the image upload is not selected
What to do when javax.el.ELException: Not a Valid Method Expression: appears when the JSF screen is displayed