XAMPP localhost returns object not found after installing Laravel

前端 未结 6 1188
日久生厌
日久生厌 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:16

    Look into your /etc/httpd.conf file and see if you have Virtual hosts activated.

    If so, check your etc/extra/httpd-vhosts.conf file. You might have set up a VirtualHost already.

    EDIT: I have found that once you turn on Virtual Hosts, XAMPP needs a default VirtualHost for your basic htdocs files

    Try adding a default VirtualHost (at the bottom of the file) like so:

    
    ServerName localhost
    DocumentRoot "/Applications/XAMPP/htdocs"
    
    Options Indexes FollowSymLinks Includes execCGI
    AllowOverride All
    Order Allow,Deny
    Allow From All
    
    
    

提交回复
热议问题