Category: NGINX

NGINX Protect Domain through Password

NGINX Protect Domain through Password It’s very easy to place a simple htpasswd-based authentication system on a domain served by nginx. To do this, you’ll want your server block to look like this:

The relevant lines here are the

NGINX and APACHE URL Redirects

NGINX APACHE URL Redirects Redirect all the requests to https

Redirect Specific Pages

Redirect based on root URL

Apache URL Redirects :

How to find Config File used by Apache on Mac

MySQL and phpMyAdmin Setup

MySQL and phpMyAdmin Setup

Errors: # tail -f error.log 2014/03/06 20:11:05 [error] 2833#0: *1 directory index of “/usr/share/phpMyAdmin/” is forbidden, client: 216.251.112.134, server: localhost, request: “GET / HTTP/1.1”, host: “ec2-54-244-152-140.us-west-2.compute.amazonaws.com” Make sure you have given correct chmod permissions are

Setup EC2 Instance with NGINX and PHP-FPM

Setup EC2 Instance with NGINX and PHP-FPM Login into AWS Console and launch default Amazon Instance. Security Group: Create your security group and download your key. Restrict the permissions on your key.

SSH into your Machine:

Update your

NGINX – SSL Certificate Setup

Create the Server Key and Certificate Signing Request Start off by creating the 1024 rsa private key.

Remove the Passphrase

Sign your SSL Certificate

Set Up the Certificate

Command History :

Top