127.0.0.1 acilla.dev
Aug 26, 2018
6
Level 2
create vhost apche2
How to create a local domain for a laravel application I'm using ubuntu 18.04 and apache2 So far I've edited my /etc/hosts and added this line
127.0.0.1 acilla
and in /etc/apache2/sites-availables I've created a new file called acilla.conf
<VirtualHost *:80>
[email protected]
ServerName acilla.dev
ServerAlias www.acilla.dev
DocumentRoot /var/www/html/acilla/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I've activated the new site using:
sudo a2dissite 000-default.conf
sudo a2ensite acilla.conf
and of course the project is created in /var/www/html with all permissions and contains .htaccess file Right now if I type http://acilla in a browser I get the default apache2 ubuntu homepage what I am missing ? Any help or fresh recent tutorial ?
Level 16
Please or to participate in this conversation.