Pointing domain to an Cryptocoin explorer

Domain Pointing

DNS (Domain Name System) allows us to reference computers by easy-to-remember domain names, like example.com  instead of IP addresses. DNS records define which IP addresses map to which domain names and how to handle other kinds of requests a domain might receive.

To set up a domain name, you need to do two things. First, you need to purchase a domain name from a domain name registrar. Second, you need to set up DNS records for your domain by using a DNS hosting service.

Domain Pointing using Godaddy.com

Step 1: Login to Godaddy.com
Step 2: My Products – > My Domains
Step 3: Select Your Domain -> Manage DNS
Step 4: Edit Your domain
Step 5: Change Points To IP address and save

Configuring Apache

Step 1: Create yourDomainName.conf file.

vim /etc/apache2/sites-available/yourDomainName.conf

Step 2: Add following code And change the Domainname.com with your domain name.

<VirtualHost *:80>
ServerAdmin webmaster@yourDomainName
ServerName yourDomainName
ServerAlias yourDomainName
DocumentRoot /var/www/html/techaroha/techaroha_wordpress/yourDomainName
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/techaroha/techaroha_wordpress/yourDomainName>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all

Step 3: Execute following commands.

sudo a2ensite yourDomainName.conf

sudo service apache2 restart

installing SSL certificate on a Domain

Step 1: Create a directory name yourDomainName on following path /etc/ssl/certs/
Step 2: Navigate to /etc/ssl/certs/yourDomainName
Step 3: Go to Website https://www.sslforfree.com/ And login
Step 4: Enter Domain Name then Click on Manual Verification and Verify Your Domain.
Step 5: You will get 3 files
  • 1- Certificate
  • 2- Private Key
  • 3- ca-bundle
Step 6: Create three files with extensions .key, .crt , .ca-bundle in yourDomainName directory.

/etc/ssl/certs/yourDomainName/yourDomainName.key /etc/ssl/certs/yourDomainName/yourDomainName.crt /etc/ssl/certs/yourDomainName/yourDomainName.ca-bundle

Step 7: Add following code And change the yourDomainName.com.conf with your domain name.

<VirtualHost *:443>

ServerName yourDomainName

ServerAdmin webmaster@yourDomainName

ServerAlias yourDomainName

DocumentRoot /var/www/html/techaroha/techaroha_wordpress/yourDomainName

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/yourDomainName/yourDomainName.crt SSLCertificateKeyFile /etc/ssl/certs/yourDomainName/yourDomainName.key SSLCertificateChainFile /etc/ssl/certs/yourDomainName/yourDomainName.ca-bundle </VirtualHost>

Step 8: Execute the commands

sudo a2ensite yourDomainName.conf

sudo a2enmod rewrite sudo a2enmod ssl

sudo service apache2 restart

Step 9: Create a .htaccess file to force https and Place below code in the file

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.yourDomainName.com/$1 [R,L]

proxy Server

Step 1: to enable proxy execute following commands

sudo a2enmod proxy

sudo a2enmod proxy_http

sudo a2enmod proxy_balancer

sudo a2enmod lbmethod_byrequests

sudo systemctl restart apache2

Step 2: Add following code in yourDomainName.com.conf  file

<VirtualHost *:80>

ProxyPreserveHost On

ProxyRequests Off

ServerName yourDomainName

ServerAlias yourDomainName

ProxyPass / http://localhost:3001/

ProxyPassReverse / http://localhost:3001/


Step 3: save file and execute the following command

sudo service apache2 restart

Facebook Comments
Show Buttons
Hide Buttons
Social Share Buttons and Icons powered by Ultimatelysocial