XAMPP localhost returns object not found after installing Laravel

前端 未结 6 1178
日久生厌
日久生厌 2020-12-31 07:46

After much faffing about I got laravel to work with XAMPP. However, I can\'t seem to access directories in the htdocs folder via localhost now. Attempt to access a file retu

6条回答
  •  死守一世寂寞
    2020-12-31 08:21

    I have same issue and found that there are miss configuration in vhost. So that's are correct configuration.

    in etc/extra/httpd-vhosts.conf

    
        DocumentRoot "D:/xampp/htdocs/laravel-master/public"
        ServerName laravel.local
        ErrorLog "logs/laravel-master-error.log"
           
            AllowOverride All
            Order Allow,Deny
            Allow From All
        
    
    

    In the hosts file

    127.0.0.1 laravel.local
    

提交回复
热议问题