Force SSL for your site with Varnish and Nginx

Posted by: Admin  :  Category: Web Hosting

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Hello!

For those of you who depend on Varnish to offer robust caching and scaling potential to your web stack, hearing about Google’s prioritization (albeit arguably small, for now) of sites that force SSL may cause pause in how to implement.

Varnish currently doesn’t have the ability to handle SSL certificates and encrypt requests as such. It may never actually have this ability because its focus is to cache content and it does a very good job I might add.

So if Varnish can’t handle the SSL traffic directly, how would you go about implementing this with Nginx?

Well, nginx has the ability to proxy traffic. This is one of the many reasons why some admins choose to pair Varnish with Nginx. Nginx can do reverse proxying and header manipulation out of the box without custom modules or configuration. Combine that with the lightweight production tested scalability of Nginx over Apache and the reasons are simple. We’re not interested in that debate here, just a simple implementation.

Nginx Configuration

With Nginx, you will need to add an SSL listener to handle the ssl traffic. You then assign your certificate. The actual traffic is then proxied to the (already set up) non-https listener (varnish).

server {
        listen x.x.x.x:443 ssl;

        server_name yoursite.com www.yoursite.com;
        ssl_certificate /etc/nginx/ssl/yoursite.com.crt;
        ssl_certificate_key /etc/nginx/ssl/yoursite.com.key;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers         HIGH:!aNULL:!MD5;

        if ($  host !~* ^www.) {
                rewrite ^(.*)$   https://www.$  host$  1 permanent;
        }

        location / {
            # Pass the request on to Varnish.
            proxy_pass  http://127.0.0.1:80;

            # Pass some headers to the downstream server, so it can identify the host.
            proxy_set_header Host $  host;
            proxy_set_header X-Real-IP $  remote_addr;
            proxy_set_header X-Forwarded-For $  proxy_add_x_forwarded_for;

            # Tell any web apps like Drupal that the session is HTTPS.
            proxy_set_header X-Forwarded-Proto https;

            proxy_redirect     off;
        }
}

The one thing to note before going further is the second last line of the configuration. That is important because it allows you to avoid an infinite redirect loop of a request proxying to varnish, varnish redirecting non-ssl to ssl and back to nginx for a proxy. You’ll notice that pretty quickly because your site will ultimately go down 🙁

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

What nginx is doing is defining a custom HTTP header and assigning a value of “https” to it :

proxy_set_header X-Forwarded-Proto https;

So the rest of the nginx configuration can remain the same (the configuration that varnish ultimately forwards requests in order to cache).

Varnish

What you’re going to need in your varnish configuration is a minor adjustment :

if (req.http.X-Forwarded-Proto !~ "(?i)https") {
    set req.http.x-Redir-Url = "https://www.yoursite.com" + req.url;
    error 750 req.http.x-Redir-Url;
}

What the above snippet is doing is simply checking if the header “X-Forwarded-Proto” (that nginx just set) exists and if the value equals (case insensitive) to “https”. If that is not present or matches , it sets a redirect to force the SSL connection which is handled by the nginx ssl proxy configuration above. Its also important to note that we are not just doing a clean break redirect, we are still appending the originating request URI in order to make it a smooth transition and potentially not break any previously ranked links/urls.

The last thing to note is the error 750 handler that handles the redirect in varnish :

sub vcl_error {
     if (obj.status == 750) {
     set obj.http.Location = obj.response;
     set obj.status = 302;
     return(deliver);
     }
 }

You can see that were using a 302 temporary redirect instead of a permanent 301 redirect. This is your decision though browsers tend to be stubborn in their own internal caching of 301 redirects so 302 is good for testing.

After restarting varnish and nginx you should be able to quickly confirm that no non-SSL traffic is allowed anymore. You can not only enjoy the (marginal) SEO “bump” but you are also contributing to the HTTPS Everywhere movement which is an important cause!

The post Force SSL for your site with Varnish and Nginx appeared first on Managed WordPress Hosting | Managed VPS Hosting | Stack Star.

Managed WordPress Hosting | Managed VPS Hosting | Stack Star

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

I need a video hosting site where i can host 6gb of 30min in 1 VIDEO CLIP, for free, and embed them on my site?

Posted by: Admin  :  Category: Web Hosting Comparison

It is not your fault you got confused. You probably already know that choosing the wrong website hosting plan can be detrimental to your business.

Here is a typical question we hear often from our website design clients:

I need a site where i can upload 37 episodes of an anime show to host on my website, it needs to be able to upload in good quality and be free to both me and my site members. These videos need to be in 1 PART AND 1 PART ONLY, no splitting videos, that is 100% out of the question. Not that i am to lazy, but its for my website, and i want to give my members the best of quality they can get.
I would love to do that, but my web host offers me only 750mb of storage space.

Before you proceed with any web hosting, ask yourself these questions:

  • What kind of technical support do you need? Do you want a phone support? Can you live with just online ticket support or communication via email? Do you need live 24/7 free support?
  • Think about scalability – do you need a host that is prepared to accomodate your potential fast growth?
  • Server location – do you absolutely need a server located locally? Remember, most reliable and cheap web hosting are located in the USA. Most of the time, your visitors will not even notice the load time regardless of where your website is hosted if the host uses fast servers with quality components.
  • How many domains names are you hosting? If you are hosting more than one domain, you should go with a plan with multi domain hosting feature. Most people will want to host more domains sometime in the future.
  • What is the purpose of the hosting service? If you want a hosting for your business, you should go with a business strength hosting. Get the lowest priced plan if you just need a host for personal website or blog as you will use very little server resources. If you are a web designer with many clients, then you need to look at the reseller hosting plans.
  • What is the number of visitors you expect? Most new websites will not have that many hits initially, so even the cheapest hosting package offered by a quality hosting company should be just right for you.

Now let us review the 10 important features to identify in an excellent web hosting. An outstanding web host:

  1. lets you try their service for free or at super low price,
  2. has friendly Live Chat available 24/7 so it does not matter where you are in the world,
  3. gives huge webspace at no extra cost,
  4. offers more than enough bandwidth at no extra cost,
  5. can be easily upgraded to VPS or one of the best dedicated server plans if and when your business require.
  6. gives unlimited add-on domains,
  7. has excellent support and rated at least A+ by Better Business Bureau (BBB),
  8. has at least 30 days money back guarantee,
  9. has easy-to-use Site Builder for quick website creation,
  10. has Fantastico and QuickInstall to quickly install apps like WordPress, Joomla, Drupal, OSCommerce, ZenCart and more,

Many experienced web developers use Hostgator. If need a quality hosting plan, website experts usually recommend going with Hostgator because they are the best best domain host in the world today.

The Hostgator reviews will tell you that HG has an amazingly long, 45 days money back guarantee so you have ample time to test them out. They are rated A+ by Better Business Bureau which shows their commitment to customer satisfaction. You also do not have to pay for the first month. You can just try their fully functional hosting service – you pay only $ 0.01 (you need to use the exclusive coupon). Do you know any other hosting company that believe in themselves so much they can give you that kind of assurance? Anybody can grab an account from Hostgator for almost FREE.

Best Hostgator Coupons

Click the coupon below try Hostgator cPanel hosting for almost free. If you already know that Hostgator is what you want, you can even save 25% off the normal price.

Hostgator Compared with Other Web Hosts

No web hosting service is perfect. If you compare Hostgator with other hosts, they do not offer some things these companies offer:

  1. Free domain name – but you can easily get a domain name from the best domain registrar such as Godaddy or Namecheap for $ 10 or less. Do not forget that it is a hassle to take the free domain name you receive at a web host and move it to another host.
  2. You need to pay full price after your first invoice – you do not expect such great service and support at $ 0.01 forever, do you? Hostgator is not one of those free hosting service. It is like they say, you get what you pay for.

If you are unsure if HG can meet your needs, or you have specific question about something, try the Live Chat at HG. They are friendly, fast and knowledgeable. They are available for sales, billing or even technical support for 24/7 at no extra charge.

Hostgator coupon
Hostgator is having a 20% sale right now, but you can use the above coupon code for bigger savings.

Web Hosting Comparison

What video hosting site is best for me?

Posted by: Admin  :  Category: Web Hosting Comparison

It is not your fault you got confused. You probably already know that choosing the wrong website hosting plan can be detrimental to your business.

Here is a common question we hear often from our website design clients:

I am looking for one that will:

-Allow me to upload an unlimited amount of videos
-Have a time limit that is very high, if not, then no limit.
-Have a file size limit of at least 100 MB
-Allow me to upload videos that have copyrighted music
-Have good quality playback
-Allow me embed videos (optional)

I know that is asking for a lot but does anyone have any ideas?

Do not make the mistake of thinking unlimited bandwidth and diskspace is all you need in a hosting service. There are a lot more to ask yourself before you decide on which web hosting is the best for you.

What Do You Really Need in a Web Host?

Use this list to check for what you truly need:

  • Does the company reputation matter to you – the brand name, history, dependability, stability, and profitability of a company can mean a lot to you if you are a web designer, hosting reseller or a website developer.
  • General support – what kind of support do you need? Is chat support important? What other support methods do you prefer. What kind of response time can you tolerate?
  • Technical support, Sitebuilder and Script Installer – are you tech-savvy or do you need as much help as you can? Do you need to build a website quickly? Do you need to install WordPress, Joomla, Drupal, Magento or other free scripts?
  • Support hours – know if you need real 24/7 support. Where are you located?
  • Server location – do you know that local, regional, national, or worldwide server makes very little difference to most visitors. Reliability and uptime is more important most of the time.
  • Growth possibility – do you need a host that can accomodate your growth? The best website hosts should have options for you to upgrade your plan.
  • Backups – can you do your own website backup? Is a good frequency and easy recovery of the backup something you should consider in a host? If what you need is the best online backup, you probably do not want a website hosting after all.

Now let us review the 10 important factors to identify in an excellent web hosting. An outstanding web host:

  1. lets you try their service for free or at super low price,
  2. has friendly Live Chat available 24/7 so it does not matter where you are in the world,
  3. gives huge webspace at no extra cost,
  4. offers more than enough bandwidth at no extra cost,
  5. can be easily upgraded to VPS or one of the best dedicated server plans if and when your business require.
  6. gives unlimited add-on domains,
  7. has excellent support and rated at least A+ by Better Business Bureau (BBB),
  8. has at least 30 days money back guarantee,
  9. has easy-to-use Site Builder for quick website creation,
  10. has Fantastico and QuickInstall to quickly install apps like WordPress, Joomla, Drupal, OSCommerce, ZenCart and more,

Many experienced web developers use Hostgator. If need a quality hosting plan, website experts usually recommend going with Hostgator because they are the best best domain host in the world today.

The Hostgator reviews will tell you that HG has an amazingly long, 45 days money back guarantee so you have ample time to test them out. They are rated A+ by Better Business Bureau which shows their commitment to customer satisfaction. You also do not have to pay for the first month. You can just try their fully functional hosting service – you pay only $ 0.01 (you need to use the exclusive coupon). Do you know any other hosting company that believe in themselves so much they can give you that kind of assurance? Anybody can grab an account from Hostgator for almost FREE.

Best Hostgator Coupons

Click the coupon below try Hostgator cPanel hosting for almost free. If you already know that Hostgator is what you want, you can even save 25% off the normal price.

Hostgator Compared with Other Web Hosts

No web hosting service is perfect. If you compare Hostgator with other hosts, they do not offer some things these companies offer:

  1. Free domain name – but you can easily get a domain name from the best domain registrar such as Godaddy or Namecheap for $ 10 or less. Do not forget that it is a hassle to take the free domain name you receive at a web host and move it to another host.
  2. You need to pay full price after your first invoice – you do not expect such great service and support at $ 0.01 forever, do you? Hostgator is not one of those free hosting service. It is like they say, you get what you pay for.

If you are unsure if HG can meet your needs, or you have specific question about something, try the Live Chat at HG. They are friendly, fast and knowledgeable. They are available for sales, billing or even technical support for 24/7 at no extra charge.

Hostgator coupon
Hostgator is having a 20% sale right now, but you can use the above coupon code for bigger savings.

Web Hosting Comparison

What is the best video hosting site?

Posted by: Admin  :  Category: Web Hosting Comparison

It is not your fault you got confused. You probably already know that choosing the wrong website hosting plan can be detrimental to your business.

Here is a common question we hear often from our website design clients:

I’m searching for the fastest video uploading site like YouTube and play it back with high quality and faster than YouTube.

Do not make the mistake of thinking unlimited bandwidth and diskspace is all you need in a hosting service. There are a lot more to ask yourself before you decide on which web hosting is the best for you.

What Do You Really Need in a Web Host?

Use this list to check for what you truly need:

  • Does the company reputation matter to you – the brand name, history, dependability, stability, and profitability of a company can mean a lot to you if you are a web designer, hosting reseller or a website developer.
  • General support – what kind of support do you need? Is chat support important? What other support methods do you prefer. What kind of response time can you tolerate?
  • Technical support, Sitebuilder and Script Installer – are you tech-savvy or do you need as much help as you can? Do you need to build a website quickly? Do you need to install WordPress, Joomla, Drupal, Magento or other free scripts?
  • Support hours – know if you need real 24/7 support. Where are you located?
  • Server location – do you know that local, regional, national, or worldwide server makes very little difference to most visitors. Reliability and uptime is more important most of the time.
  • Growth possibility – do you need a host that can accomodate your growth? The best website hosts should have options for you to upgrade your plan.
  • Backups – can you do your own website backup? Is a good frequency and easy recovery of the backup something you should consider in a host? If what you need is the best online backup, you probably do not want a website hosting after all.

Now let us review the 10 important factors to identify in an excellent web hosting. An outstanding web host:

  1. lets you try their service for free or at super low price,
  2. has friendly Live Chat available 24/7 so it does not matter where you are in the world,
  3. gives huge webspace at no extra cost,
  4. offers more than enough bandwidth at no extra cost,
  5. can be easily upgraded to VPS or one of the best dedicated server plans if and when your business require.
  6. gives unlimited add-on domains,
  7. has excellent support and rated at least A+ by Better Business Bureau (BBB),
  8. has at least 30 days money back guarantee,
  9. has easy-to-use Site Builder for quick website creation,
  10. has Fantastico and QuickInstall to quickly install apps like WordPress, Joomla, Drupal, OSCommerce, ZenCart and more,

Many experienced web developers use Hostgator. If need a quality hosting plan, website experts usually recommend going with Hostgator because they are the best best domain host in the world today.

The Hostgator reviews will tell you that HG has an amazingly long, 45 days money back guarantee so you have ample time to test them out. They are rated A+ by Better Business Bureau which shows their commitment to customer satisfaction. You also do not have to pay for the first month. You can just try their fully functional hosting service – you pay only $ 0.01 (you need to use the exclusive coupon). Do you know any other hosting company that believe in themselves so much they can give you that kind of assurance? Anybody can grab an account from Hostgator for almost FREE.

Best Hostgator Coupons

Click the coupon below try Hostgator cPanel hosting for almost free. If you already know that Hostgator is what you want, you can even save 25% off the normal price.

Hostgator Compared with Other Web Hosts

No web hosting service is perfect. If you compare Hostgator with other hosts, they do not offer some things these companies offer:

  1. Free domain name – but you can easily get a domain name from the best domain registrar such as Godaddy or Namecheap for $ 10 or less. Do not forget that it is a hassle to take the free domain name you receive at a web host and move it to another host.
  2. You need to pay full price after your first invoice – you do not expect such great service and support at $ 0.01 forever, do you? Hostgator is not one of those free hosting service. It is like they say, you get what you pay for.

If you are unsure if HG can meet your needs, or you have specific question about something, try the Live Chat at HG. They are friendly, fast and knowledgeable. They are available for sales, billing or even technical support for 24/7 at no extra charge.

Hostgator coupon
Hostgator is having a 20% sale right now, but you can use the above coupon code for bigger savings.

Web Hosting Comparison

what is the cheapest/best web hosting site?

Posted by: Admin  :  Category: Web Hosting Comparison

A frequently-asked query:

I want to build a website for my art and photography and need something fairly cheap as i am just a student.


Answer: We heard this question often. From your cheapest hosting , why not try Justhost. If you are building your first website and needs a hosting package, we highly recommend you go with Justhost. You should also read this Justhost review to see what we mean. Justhost gives free domain name, unlimited bandwidth, unlimited webspace, unlimited add-on domains, easy Sitebuilder, cPanel, Fantastico and much more for so cheap. You can subscribe with Justhost for only $ 4.45/month (must use the coupon below).

At Justhost, you can use Fantastico to autoinstall applications such as WordPress, Joomla, Drupal, phpBB, OSCommerce and many more.

Save 50%

Click the coupon below to save 50% off the normal price




Why not leave your comment in the box below.

Web Hosting Comparison

I’ve created my own website and I only need a domain name with web hosting. What’s the best site to go with?

Posted by: Admin  :  Category: Web Hosting Comparison

A frequently-asked query:

I’ve compared prices on different sites, but most of them have a site builder where you create a site through them. Since I already have one, I don’t need that. What’s the best site strictly for domain name and web hosting?


Answer: We heard this question often. From your compare website hosting , why not try Justhost. If you are building your first website and needs a hosting package, we highly recommend you go with Justhost. You should also read this Justhost review to see what we mean. Justhost gives free domain name, unlimited bandwidth, unlimited webspace, unlimited add-on domains, easy Sitebuilder, cPanel, Fantastico and much more for so cheap. You can subscribe with Justhost for only $ 4.45/month (must use the coupon below).

At Justhost, you can use Fantastico to autoinstall applications such as WordPress, Joomla, Drupal, phpBB, OSCommerce and many more.

Save 50%

Click the coupon below to save 50% off the normal price




Why not leave your comment in the box below.

Web Hosting Comparison