Add an additional Wikipedia site / AWS / Apache
From Cramsession
Jump to navigationJump to search
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
Configure Route 53 to foreard traffic
1) Login to the Rounte 53 console.
2) Select "Hosted Zones".
3) Select the dns entry you wish to add.
4) Select Create record.
5) Input the record:
- Record type sould be A
- Input the public IP of the servers ENI
- Subdomain should be blank
6) Click Create records.
7) Repeat the process for a CNAME record
- CNAME should redirect WWW to root A domain
Add a new site to Apache
1) Creare the site folder:
sudo mkdir -p /var/www/example2.com/
2) Set rights:
sudo chown -R $USER:$USER /var/www/example2.com sudo chmod -R 755 /var/www
3) Create a new vhost file:
cd /etc/apache2/sites-available cp cp cramsession.net.conf newsite.com.conf
4) Update the configuration file:
- Server name / Serrver Ailias www.sitename.com
- Document root
5) Create test.html file in document root
6) Enable in apache
sudo a2ensite 907technology.com.conf systemctl reload apache2
7) Test site without SSL
Configure SSL
Run the certbot command - you must include all the sites on the server:
sudo certbot --apache --expand -d www.cramsession.net -d www.opalmarigold.com -d www.907technology.com
Test SSL