Editing
Website Hosting & SSL certificate installation
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Website Hosting Login to Go Daddy account (https://dcc.godaddy.com/manage/apoyar.eu/dns) with corresponding domain Create DNS record β’ Type β A β’ Host β Project Name (websitetesting) β’ Point to β Server IP (On which, we are hosting website ex. demo.apoyar) β’ Click on SAVE Login to Server (ex. demo.apoyar) Go to below path and copy the config file from existing project config file β’ Cd /etc/nginx/sites-available Open config file and edit the servername (ex. demo.apoyar) and path (/var/www/websitetesting) β’ Vi websitetesting.conf Go to below path and create folder (websitetesting) and create index.html file inside that folder with some content β’ mkdir websitetesting β’ vi index.html Create softlink with below command β’ ln βs /etc/nginx/sites-available/websitetesting.conf /etc/nginx/sites-enabled Reload nginx service with below command β’ service nginx reload SSL Certificate Installation Go to https://certbot.eff.org We have to select there, web server and corresponding system Ex. Nginx (webserver) and Ubuntu 18.04 (system) Install the certificate with below command β’ sudo certbot βnginx It will give you a list of projects, to select your project, enter according project number and press enter Then it will ask for redirection with two options, we have to select 2nd option β’ Redirect all This way the certificate get installed Then check the website with the secured one With other option we can just generate certificate with below command, then we have to change only key file path in the config file β’ sudo certbot certonly --nginx Example: Below two lines need to replace ssl_certificate /etc/letsencrypt/live/websitetesting.apoyar.eu/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/websitetesting.apoyar.eu/privkey.pem; # managed by Certbot Errors:- 1.If certificate not installing due to the domain mistake or domain not created in GoDaddy, Nginx configuration file mistake with a domain name. 2.As well as after installation is done and still SSL is not secured then rerun it again to fix that.
Summary:
Please note that all contributions to Apoyar Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Apoyar Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Apoyar Infrastructure
Active Directory
Recent changes
Random page
Upload file
Tools
What links here
Related changes
Special pages
Page information