The usual code for forcing pdf files to download and not open in the browser is this: location ~* /(.*\.pdf) { types { application/octet-stream .pdf; } default_type application/octet-stream; } Restart the nginx server with the command: service nginx restart It is best if the location directive is placed immediately after the server directive. server {
Author: vps-guide
How To Force Download Files In Apache 2 | Ubuntu
To force the files to be downloaded and not open in the browser, the following commands have to be entered
In this tutorial, we will use a Vultr VPS to set up a wordpress website in under 5 minutes. Thereafter, we will point our domain name to the VPS and ensure that we have a fully functional website
Every webmaster must have a server security checklist so that it is ensured that the server is hardened and cannot be infiltrated. In a web hosting server, hardening the SSH, tmp, PHP, DNS server is necessary
A credit card is not necessary to sign up for Google Cloud and avail of the free VPS. The free server can be availed of without a credit card
When you try to update Wordpress you get the error “Update WordPress Unable to locate WordPress Root directory. Installation Failed” This problem is solved by adding the following code to the wp-config file
Detailed tutorial (with pictures) on how to set up a VPS with Amazon EC2 to send free emails From SES using VirtualMin and phplist
This is a list of 10 of the best VPS hosts with datacenter in India who also charge cheap rates for SSD Disks, high CPU, RAM and other best specifications & are reliable. There is a difference between unmanaged and managed Virtual Private Servers
Tutorial on configuring VirtualMin’s settings for DKIM, SPF and DMARC with reverse DNS to ensure proper delivery & receipt of emails from SMTP server
The process for cancellation of an OVH VPS is not as simple as it in the case of other VPS providers