Admin Books

DOWNLOAD Free e-Books for Linux Admin Servers :

Faster Nginx Tricks


The benchmarks should give nearly the same results, as nginx is waiting for Apache to return it's data before sending it along. What happened in those benchmarks is that cloudflare.com (highly recommended by the way) was caching some results and not others.

When I tried on localhost, the results were effectively the same. So the way to get better performance is to get nginx to cache the results from apache, by adding the following to your nginx virtual host definition :

                proxy_cache one;
                proxy_cache_use_stale error timeout invalid_header updating;
                proxy_cache_key $scheme$host$request_uri;
                proxy_cache_valid       200 301 302 20m;
                proxy_cache_valid       404 1m;
                proxy_cache_valid       any 15m;

where the proxy_cache named one is defined in nginx.conf as such :

proxy_cache_path /usr/local/nginx/proxy levels=1:2 keys_zone=one:15m inactive=7d max_size=1000m;
The proxy_cache_valid entries above define different cache times for various response codes

Misleading Tips When You Choose VPS As Your Web Hosting Model


Recent years have seen hacking become a prime concern for the e-commerce industry. Websites of renowned financial and government organizations have even not been spared of hacking in the recent past. That is not it, in the previous year, the official website of the White House, was out for nearly seven days due to hacking attacks. Just imagine the same when that happens to your business website! What if your e-commerce website developed with your precious and valued funding gets hacked? Thankfully, choosing a high security website hosting platform like Linux VPS hosting, will lessen your e-commerce website's chances of being hacked by at least 60- 70%.

There are a lot of companies offering secure web hosting services. However, if you want the highest level of security, opting for a reputed Linux VPS hosting service provider is a wise decision. And now let’s discuss some of the advantages that your linux hosting service can offer.

1. Robust Security: It is known in the world over that Linux has high standards for its security features. So, using a Linux platform for hosting your e-commerce website, it is natural that your website would remain secure against any form of unauthorized intrusions. So, you can keep your e-commerce website protected from malware and phishing attacks as well as keep it safe against hacking.

2. You can have control over the hosting server: Windows platform is more comfortable to work on, but when it comes to working on Linux, more configuration options are available in comparison to Windows. So the scope of customization in Linux platform as compared to Windows operating system, which will enable you to configure your website's visibility for many types of visitors. For example, with Linux hosting, you can impose restrictions on anonymous visitors to sections of your website, which are low in priority.

3. The access is quick access and operation is faster: Experts opine that, since Linux OS consumes fewer CPU clock cycles than Windows operating system, hosting your website on Linux platform would help your e-commerce website to run faster than in a Windows environment. So when opting for a dedicated or Linux VPS service you can speed up your website and the online transactions could be done much faster than in a windows hosting.

Eventually if you're planning to launch an e-commerce website for yourself, make sure to opt for a renowned Linux VPS hosting service provider. There is no dearth of companies around that offer virtual private server hosting services. Always make sure that you do a background research about the service provider before selecting one that suits your requirements.