Setup domain in Apache server on DigitalOcean Cloud

I am trying to set-up a domain in Apache on DigitalOcean and summarise this information after complete the task for my future reference. If this information helps other, it will be my pleasure to know that on a comment. 😉

BTW, You can host as many (multiple) domains as you want by following this steps.

 

#Step 1: go to by

cd /etc/apache2/sites-available

#Step 2: copy default configuration file, in my case I was configuring my site skpaul.me

sudo cp 000-default.conf skpaul.me.conf

#Step 3: Open the file skpaul.me.conf

sudo nano skpaul.me.conf

#Step 4: Update following information in the open file, you you can copy below configuration and update as you needed.

<VirtualHost *:80>

ServerAdmin hello@skpaul.me

DocumentRoot /var/www/html/skpaul
ServerName skpaul.me
ServerAlias http://www.skpaul.me

ErrorLog //var/www/html/skpaul/logs/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/www/html/skpaul/logs/access.log combined

</VirtualHost>

save the file

#Step 5: create a symlink to site-enable folder

sudo a2ensite skpaul.me.conf

#Step 6: restart the server

sudo service apache2 restart

You are done, now check your site from browser.

Advertisements

Integrate, install, test and debug SSL Certificate

I am working on a project and PM request me to create a CSR (Certificate Signing Request) for purchasing a SSL certificate. I do some research and of-course Google, suddenly get this informative hands-on video tutorial with commands in text format. So,just watch the video with full concentration and use the commands when you need it.

BTW, there is also a video on How do you get and integrate a free SSL with your domain/site.

So, Njoy and visit the link.

 

How to Integrate, install, test, debug #SSL Certificate. 5 videos cover many things. Also with free SSL Certificate from #Letsencrypt

  1.  Create CSR and Purchase and Install an SSL Certificate — https://serversforhackers.com/c/purchase-and-install-an-ssl-certificate
  2. Testing and Debugging SSL Certificates — https://serversforhackers.com/c/testing-and-debugging-ssl-certificates
  3. Self Signed SSL Certificates for Development — https://serversforhackers.com/c/self-signed-ssl-certificates-for-development
  4. Purchase & Install a Wildcard SSL Certificate — https://serversforhackers.com/c/purchase-install-a-wildcard-ssl-certificate
  5. Letsencrypt for Free & Easy SSL Certificates — https://serversforhackers.com/c/letsencrypt-for-free-easy-ssl-certificates (**FREE SSL)

And here is all together — https://serversforhackers.com/s/integrating-ssl-certificates

Here is the man (Chris Fidao) who secure my and your life too as well as time.

THANKS Chris Fidao.