Configuration for a domain in your Ubuntu Apache

The content of a configuration file for a new domain in apache (e.g. /etc/apache2/sites-available/starfish.ml.conf) should be the code in this article.

<VirtualHost *:80> 
DocumentRoot /var/www/html/starfish.ml 
ServerName starfish.ml 
ServerAlias www.starfish.ml 

<Directory "/var/www/html/starfish.ml"> 
Allow from all 
Options +Indexes  
RewriteEngine On 
RewriteBase /  
</Directory> 
</VirtualHost>Code language: HTML, XML (xml)