How To Install (LEMP), Linux, nginx, MySQL, PHP stack on Ubuntu 12.04

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 L – Linux E – Nginx (Pronounced Engine-X) M – MySQL P – PHP Step 1 Log in to your Linux server with the root user. This has taken care of the ‘L’ of LEMP. Step 2 Next we will update all the softwares to the latest versions sudo apt-get update Step 3 Install […]

Redirect all HTTP requests to HTTPS for Nginx

To add redirect for all HTTP requests to HTTPS, we need to add Nginx Redirect rules to the nginx config file. The server block for http requests should look like : ## our http server at port 80 server { listen 1.2.3.4:80 default; server_name example.com www.example.com; ## redirect http to https ## rewrite ^ https://$server_name$request_uri? […]