HTTP server for website

Started by mickyrobert, Nov 29, 2022, 07:52 AM

Previous topic - Next topic

mickyrobertTopic starter

Can you please provide me with an answer to what may seem like a foolish question? I am in need of a response!

For my latest web project, the HTTP server holds a significant position within the project's work scheme.

Do I just need hosting or will renting a server also be necessary?
  •  

sujitbikash

Let me share with you two secrets of web projects. Firstly, the server plays a crucial role and obtaining even just a picture from web hosting without it can become quite difficult. Therefore, most hosting companies offer a configured server to their clients.

Secondly, at the initial stage of a web project, traffic is typically minimal. As a result, upgrading to a more powerful server package can be done quickly and easily, often within an hour. For this reason, investing in powerful servers prematurely can result in unnecessary loss of funds.
  •  

worldtraveler

There are many programs available for HTTP web hosting, and the majority of them are free. The most popular one being nginx, I would strongly recommend it to anyone. For beginners, both Apache and Microsoft IIS are also good options.

When selecting an operating system for your web server, choosing Linux is a wise decision. It is free and provides excellent features. Before making a purchase, it's important to understand why you're doing so.

It is usually not necessary for an application to know which web server it is running on. Microsoft products tend to bind developers to their products, which can be quite expensive.

Web servers typically operate in two main modes, plugin launch and CGI. The former allows web server applications written in its language to be launched while the latter can run the application in any language. There is also a static mode, which optimally distributes files.

If the project is not high load, the web server and the web application are usually combined into the same machine. However, they are still put in proxy mode as an additional precaution.

During development, using the built-in web server in the backend language or a simple script can be useful. When it comes to web hosting, it is essential to consider who will administer the server. Some hosting services include administration in their tariffs, but others do not.
  •  

dany

Java offers several options for HTTP servers, including resin, tomcat, and jetty. However, the main objective was to showcase the essence of Sockets, InputStream, OutputStream, Threads, and other related concepts.

I chose to use the HTTP server as an example because it is closer to the forum's topic than a generic TCP server. Despite this, I would not advise anyone to use sun.net.httpserver as it is outdated and essentially useless, even when it comes to learning.

It's crucial to note that writing examples is not about reinventing the wheel. Although the task was set to create an HTTP server quickly, I wanted to demonstrate useful and understandable code to people. While it may not have been the most precise statement of the problem, some people found it helpful.
  •  

UWZLaltawataSopy

For your web project, it depends on the specific requirements and needs of your project. If you only need basic hosting capabilities, where your website is stored and made accessible to users, then a hosting service should suffice. Hosting services typically provide shared or dedicated servers, depending on your needs.

However, if you require more control, customization, and flexibility for your web project, renting a server might be necessary. Renting a server gives you full control over the hardware and software configurations, allowing you to tailor it to your specific project requirements. This is especially relevant if your project has advanced functionalities or requires additional resources, such as high-performance computing or specific software installation.

Consider factors such as budget, technical expertise, scalability needs, and expected traffic volume to determine whether basic hosting or renting a server is the better option for your project.
  •