Aws Ec2 Single Instance Multiple domains. First, we go to the sites-available folder. Where there are configuration files.
In the Apache web server, the sites-available directory is used to store configuration files for different websites or virtual hosts that can be hosted on the server.
Each file in the sites-available directory represents a separate website or virtual host and contains configuration directives for that website. These directives include things like the website's domain name, document root directory, SSL settings, and more.
cd /etc/apache2/sites-available/
Keep a copy of the default configuration file.
sudo cp 000-default.conf myexample.com.conf
sudo nano /etc/apache2/sites-available/myexample.com.conf
Change the domain name
ServerAdmin admin@myexample.com
ServerName myexample.com
ServerAlias www.myexample.com
DocumentRoot /var/www/html/YOURFOLDERNAME
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
sudo a2ensite myexample.com.conf
sudo service apache2 restart
Thanks..
AWS S3 bucket policy for upload and download Goto AWS Account -> S3 -> Select Bucket&..
If you are unable to connect to port 22 on your Amazon EC2 instance, it could be due to several reas..
Solved Amazon ec2 not working when accessing through public IP Check your security group.. ..
EC2 means Elastic compute cloud.AWS provides secure and resizable compute capacity in cloud. ..
Aws Ec2 Single Instance Multiple domains. First, we go to the sites-available folder. Where there ar..
Get the latest news and updates by signing up to our daily newsletter.We won't sell your email or spam you !