Launch a AWS EC2 instance, the testing instance is
Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0d7ed3ddb85b521a6
Connect to your EC2 instance, and enter
sudo vim /etc/httpd/conf.d/yourProjectName.conf
paste the following code
<VirtualHost *:443> |
- Although we could complete multiple project deployment in a single config file once we set the domain name and project address properly, I personally prefer one config file to one project to prevent any possible confusion in the future.
- So simply repeat all the steps mentioned above, creating a new config file, and config it properly, and then type
sudo service httpd restart
- Connect to your domain, it should work now.
Comments