Let's say you want to host domains first.com and second.com.
Create folders for their files:
| <?php | |
| /** | |
| * Code to Create Custom WordPress login form without plugin | |
| * @author Joe Njenga | |
| * @ gist - | |
| */ | |
| // Step 1: Create shortcode | |
| function njengah_add_login_shortcode() { |
| #change it to latest version | |
| NPS_VERSION=1.11.33.0; | |
| echo "Changing Directory to $HOME..." | |
| cd $HOME; | |
| echo "Nginx version to install: " && \ | |
| read NGINX_VERSION && \ | |
| echo "Downloading nginx-$NGINX_VERSION..." && \ | |
| wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \ | |
| echo "Installing Nginx Dependencies..." && \ |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| server { | |
| # Redirect yoursite.com to www.yoursite.com | |
| server_name yoursite.com; | |
| rewrite ^(.*) http://www.yoursite.com$1 permanent; | |
| } | |
| server { | |
| # Tell nginx to handle requests for the www.yoursite.com domain | |
| server_name www.yoursite.com; |