MENU
Choosing Your Server
By hosting the webserver on your local computer, you gain control of the platform from top to bottom and do away with the constant need to upload the files for your site over the Internet. Chances are that the operating costs will be lower as you are not using many (if any) third-party services.
You can also host the webserver on a remote machine by renting a machine from a cloud service provider (IaaS) such as OVH and Scaleway. Cloud computing offers a high bandwidth and a low latency for your website traffic. Should the need to scale up arise as your website becomes increasingly popular, you can easily form a network of high-end machines remotely and load-balance the site traffic, without much setup or maintenance hassle. Nor will you need to purchase the entire set of expensive hardware upfront. Most providers charge by the hour and allow you to choose your hardware and operating system. Amazon Web Services (AWS), Google Cloud Platform,and Microsoft Azureare some big names when it comes to cloud computing.
Rank | Platforms | Respondents |
1 | Linux | 55.0% |
2 | Windows | 53.1% |
3 | Docker | 35.0% |
4 | AWS | 26.7% |
5 | Android | 26.2% |
6 | MacOS | 24.0% |
7 | Raspberry Pi | 14.9% |
8 | Microsoft Azure | 14.5% |
9 | WordPress | 14.2% |
10 | Google Cloud Platform | 14.1% |
11 | iOS | 12.2% |
12 | Kubernetes | 11.5% |
13 | Heroku | 11.1% |
14 | Arduino | 10.6% |
15 | Slack Apps and Integrations | 7.3% |
16 | IBM Cloud or Watson | 1.6% |
(courtesy of https://insights.stackoverflow.com/survey/2020#technology-platforms) |
Hosting your web server means that you need to manually make your server reachable anytime on the internet, which is the subject of the next section. The following subsections explain the steps needed to setup a few different popular types of web servers. Bear in mind, however, in practice you need to choose only one type of web server platform.
Make sure the HTTP port (normally 80) has not already been used as you setup a web server. Remember to allow connections to pass through your firewall too.
Rank | Web Servers | Websites |
1 | Apache | 33.8% |
2 | Nginx | 33.8% |
3 | Cloudflare Server | 18.4% |
4 | LiteSpeed | 8.5% |
5 | Microsoft IIS | 7.0% |
6 | Node.js | 1.2% |
7 | Google Servers | 1.1% |
(: courtesy of https://w3techs.com/technologies/overview/web_server ) |
||
2. Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy, and HTTP cache. | ||
3. Once you are part of the Cloudflare network, your website's contents (eg. CSS, JavaScript, and image files) will be served from the server residing closest to your site's visitors. This decreases latency and thus enhances SEO. Cloudflare also provides services of firewalls, load-balancing, SSL/TLS, caching, Distributed-Denial-Of-Service (DDoS) mitigation, etc. Cloudflare is a CDN (Content Delivery Network) provider that is free to use if your website is small. Cloudflare does not provide hosting services. | ||
4. LightSpeed uses the same configuration format as Apache HTTP Server and is compatible with most Apache features. |