12 Feb 2017

What is cloud computing?

cloud, hosting cloud, google cloud, amazon cloud, vps cloud, email cloudThe cloud is an IT buzzword which means numerous distinct things. With regards to web site hosting, cloud hosting means a more contemporary, more adaptable strategy to servers. Before we determine cloud hosting, note that distinct hosts have their very own definitions of the term. Website hosting intended renting a ball of server space from one physical device. Some types of hosting nevertheless run within that boundary. If you rented a whole server, you can select the settings of the server, within the limitations of the device. Cloud hosting enables you to break free from those boundaries, creating virtual servers that unite the resources of a bunch of machines, as opposed to only one.

This allows hosts to sell packages which are much bigger and more powerful. In addition, it implies that hosting plans may scale up to meet need, managing traffic spikes by growing resource on the fly. Another benefit of cloud hosting is increased dependability. Some hosts providing cloud hosting promote far better uptime guarantees – 100%, in several cases. Distinct hosts provide this redundancy in various manners, some will put the website on numerous storage devices, while some will use multiple virtual servers. Clouds in many cases are spread across distinct physical places for additional protection against Acts of God. Some hosts utilize load balancing technology to make certain the virtual data center able to meet demand as it increases and decreases.

High profile security breaches have made some companies nervous about implementing cloud computing, and research has been conducted to determine only how secure the cloud is. Almost all these transactions relate to cloud storage, where security is more of the concern. If you host your web site in the cloud, your host only will ask that you follow regular security techniques, like using distinctive passwords and maintaining scripts up to date. The fact that your site is just hosted in the cloud won’t change security best practice. The one caveat is that most sites are hosted in public places clouds.

The host deploys security the fact that stops any client intruding into the others sites or servers, and most sites will run completely safe in this environment. For complete best protection, a personal cloud is a better choice, however this is normally a much less affordable service. Despite some business predictions, cloud hosting has not made shared hosting obsolete. There are several situations when shared hosting still trumps the cloud. Different hosts offer various kinds of cloud hosting, this by itself is a point of caution, since evaluating cloud hosting is difficult.

Share this
15 Sep 2015

How to setup Nginx for wordpress multisite with subdirectories..

Running WordPress on Nginx is always a good choice, but also have some complications in configurations. Here is the clear and precise way of how to setup Nginx for wordpress multisite with subdirectories.You can also configure Nginx with subdomain multisite and it all depends on your requirement .

You can setup wordpress multisite on Nginx like:

  1. site1.example.com, site2.example.com
  2. www.example.com/sub1, www.example.com/sub2

Here is the steps to setup  Nginx for wordpress multisite with subdirectories:


Install wordpress fresh on your system, and enable multisite option by adding a line to your wp-config.php file. Add this line just above where it says “/* That’s all, stop editing! Happy blogging. */”:
Add this line :
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );

Now you can see a new option will appear in the Admin panel of WordPress under Tools -> Network Setup


Now you need to choose the subdirectory install option and click on Install. Once it is done, now you’ll have to add some more lines in your wp-config.php file. These lines may varies based on your installation and you can get these lines after the install has been completed.

Now copy these new lines in wp-config.php .Now you will see a separate “Site” called Network Admin in the upper left of your Admin section.


Now you can create a new site that you want to install and also provide subdirectory installation path for the new website.Now we have done setting up new website in subdirectory and we still need to link it through URl.
Now you have to go Under the Network Admin section, install a new Plugin called Nginx Helper. Once it get installed and activated, visit the plugin settings page and check the box next to “Enable Nginx Map.” This will display a new section showing a file system path to your map file and the actual site mappings that are being generated.

Each new site in your network will have both a directory path as well as a blog id. The mapping links the subdirectory in the URL with the proper site in the database.


Now we are almost there in setting up are multisite on Nginx.Now you need to access terminal access to the Nginx vhost file through SSH.
SSH to the Nginx site configuration file, on Debian/Ubuntu it’s at /etc/nginx/sites-available.
Now you need to modify the .vhost file

At the start of the file, outside the server{} block add this :

map $http_host $blogid {
default 0;
include /var/www/pathtoyoursite/wp-content/uploads/nginx-helper/map.conf;

By this way it will let the plugin update the mappings file automatically as you add new sites and you won’t have to change your Nginx config again.

Now at atlast in your .vhost file add the following Nginx directives at the bottom of the server{} block, replacing any existing WordPress directives you’ve already defined, usually following the location @php{} directive:

location / {
try_files $uri $uri/ /index.php?$args;

location ~ ^/files/(.*)$ {
try_files /wp-content/blogs.dir/$blogid/$uri /wp-includes/ms-files.php?file=$1 ;
access_log off; log_not_found off; expires max;

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 24h;
log_not_found off;

location ^~ /blogs.dir {
alias /var/www/pathtoyoursite/web/wp-content/blogs.dir ;
access_log off; log_not_found off; expires max;

if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;

Now the alias line in the second to last block, you’ll need to update that with the path to your wordpress install.


Restart Nginx and enjoy your multisite.

Share this