Web Servers

When we visit a website, our request typically goes to a web server.

The usual flow is:

user ➞  browser ➞ internet ➞ web server ➞ application server (WordPress) ➞  php ➞ mysql

Depending on the type of web hosting you are using, the web server will be either transparent to you (e.g. WordPress VIP/Heroku) or you will be finding yourself dealing with it completely or partially (e.g. EasyEngine). But in all cases, web hosting will always have a web server component. Web servers most commonly listen on port 80 (unencrypted) or 443 (encrypted) on the server.

As per W3Techs, until recently, Apache used to be the #1 web server before Nginx surpassed it.

However, when developing for WordPress, we try not to make our features depend on the presence of a Web Server. That is a reason why server technology ranking shouldn’t concern us.

rtCamp has been using Nginx since 2009, so in rtCamp whenever we refer to a web server, it likely means Nginx.

WordPress and Web Server

As a WordPress engineer, we need to deal with web servers in a few special cases:

  1. Some web server configurations can hijack PHP error logs so you may not see the expected debug outcome.
  2. Some web servers are configured to talk to multiple application servers upstream so you may not be seeing any hit to WordPress when expected.
  3. Web server (mis)configuration can give you unexpected URL redirects or 404 when working with permalinks/rewrite_rules in WordPress.

EasyDash

With the EasyDash you can create a test/staging site of your own. For that, you need to follow the below steps.

  1. Log in to EasyDash with your rtCamp account/email.
  2. Once you logged in, go to Sites and then click on ‘Create Site’.
  3. From there you can add your site URL (ensure that you are using the subdomain of rt.gw when creating a new site), choose a server, and Enable CI/CD.
  4. Then click on the ‘Next step’ and choose your options accordingly.

Finally, it will create a test/stage site for you.

You may be interested in: