I have a running EC2 instance in Linux (Apache server). I recently cloned another repository to my EC2 instance. For example : In var/wwww/html there are two folders
- front(already running)
- frontend(newly cloned)
I wanted the instance to listen, folder frontend
Methods tried :
- changed root directory in /etc/apache2/sites-enabled/000-default.conf to
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/frontend/dist
<Directory "/var/www/html/frontend/dist">
FallbackResource /index.html
</Directory>
and restarted Apache
- Tried stopping the instance and started again
- tried rewrite mode by
sudo a2enmod rewrite
- shows rewrite mode already enabled