Answer the question
In order to leave comments, you need to log in
Do I need to buy an additional HTTP server for the site or hosting is enough?
This might be a stupid question, but I sincerely need an answer!
I decided to create a web project, and the HTTP server plays an important role in the scheme of work of this project,
and therefore I'm wondering if just hosting is enough or will the server also need to be rented?
Answer the question
In order to leave comments, you need to log in
I decided to create a web project, and the HTTP server plays an important role in the scheme of work of this projectLet me tell you secret number 1: in any web project, the server plays an important role. Even just giving a picture from a hosting without it is quite difficult. For this simple reason, almost all hosting providers provide a customized server.
But is it limited in the number of requests?Everything in the world is limited by something. There are servers with different conditions, prices, equipment, choose what suits you. Secret number 2: At the initial stage, even a megaproject will have near-zero traffic. And the issue of switching to a more powerful package of services is resolved within an hour. So premature spending money on powerful servers is a guarantee of wasting money.
Do not laugh at the man, he asked correctly, you did not understand it.
http web server is a program, their darkness is dark and for the most part they are free , you don’t need to buy anything separately.
The most popular web server is nginx - I strongly advise
the most famous for beginners is apache or Microsoft's IIS I
strongly recommend choosing linux as the operating system, especially since it's free (if you don't choose any redhat, I have nothing against it, just before that or buy you need to understand why you do it)
Usually, the application does not need to know under which web server it is running, i.e. does not bind you, but of course it is possible, for example, Microsoft likes to bind developers to their products, and if you do this thoughtlessly, it turns out that you have to buy a bunch of expensive licenses ( i.e. the web server is free as a service but on a server with an expensive license )
The web server usually has two main ways to work with the program (ok, three, it is below) - plugin launch mode (when the web server can launch the web server application written in its language, i.e. it knows how and works in its own way) and cgi , when the application can be in any language, even a binary, just the web server launches it for each request and redirects the input output from the browser to it as a standard console input output. The first approach allows in many cases to greatly optimize the work ... although there are situations when the second is more efficient. There is a 'static' mode - distribution of just files by the web server bypassing the web application, thanks to good optimization, files are distributed as efficiently as possible when the web application consumes processor time (ultimately the most 'expensive' resource, along with RAM).
If the project is not highload (these are millions of active users), then both the web server and the web application itself are usually combined on the same machine, moreover, in some situations, this application can take over the function of the web server, but they don’t, because this is an additional point of failure and therefore, they still put the web server in proxy mode (the world connects to nginx and it already redirects requests to the internal application server according to the settings
) (run php -S 0.0.0.0:8080 - will start http server on port 8080 )
There are also 'one-liners' in almost any programming language, so whatever you choose, a simple script can be a webserver during development.
upd. along with hosting, it is necessary to consider who will administer the server, if the hosting is universal vps / vds, then the default setup and support is usually not included in the tariff, but SaaS hostings that offer not the server itself but a service, for example, web application hosting, may include in the tariff is just administration (in the cheapest options, this is a web panel, an interface in the provider's console where typical tasks are solved in a mouse-like way)
Well, hypothetically, with the help of IPFS + Cloudflare + js on the client, you can do without a server :)
Any hosting is a server rental. Virtual, dedicated - it doesn't matter.
Hosting is enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question