samedi 19 mai 2018

Apache 2 Virtual Host for Laravel 5

I am setting up Apache virtual host for Laravel application development on Ubuntu 16.04, but have problems.

made new conf (laravelapp.dev.conf) file

<VirtualHost laravelapp.dev:80>
    ServerAdmin admin@larasite.dev
    ServerName laravelapp.dev
    ServerAlias www.laravelapp.dev
    DocumentRoot /var/www/html/laravelapp/public
</VirtualHost>

-enable it with sudo a2ensite laralvelapp.dev.conf

-reload server

but when run laravelapp.dev in browser, site cant be reached larasite.dev’s server IP address could not be found.

then I am add 127.0.1.2 laravelapp.dev to etc/hosts, but still cant run app typing server name, only if I type IP address it will serve application...

Thank you.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2IVQCvR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire