Laravel configuring VirtualHost and Spatie Media Library

17 Views Asked by At

I installed in 2 computers a laravel project with spatie media library, but in one of them I use virtual host from this link: Link

Computer 1 - Do not setup a Virtual Host

Computer 2 - Has setup Virtual Host named "media". "media.conf"

In computer 1 I need to run like "php artisan serve" and do not have problems, but

in computer 2 I write "media.test" directly into my chrome explorer I have this message error: enter image description here enter image description here

I want to know why this happend?

Note: I resolve this in computer 2, deleting the .conf file and disable it, and not using Virtual host. But, why I can not configuring my 2nd computer with virtual host?

I found this differences... without virtual host: enter image description here

with virtual host: enter image description here

0

There are 0 best solutions below