XAMMP。找不到对象!错误404本地主机

时间:2020-08-31 13:25:01

标签: php laravel apache xampp

我刚刚在Mac上安装了XAMPP。配置完所有内容并尝试在localhost 8080上运行myProject后,网络上将显示以下错误。

localhost:8080 / myProject

找不到对象! 在此服务器上找不到请求的URL。如果您手动输入网址,请检查拼写,然后重试。

如果您认为这是服务器错误,请与网站管理员联系。

错误404

本地主机

Apache/2.4.46 (Unix) OpenSSL/1.1.1g PHP/7.4.9 mod_perl/2.0.11 Perl/v5.32.0

这是XAMPP的配置

XAMPP

XAMPP-port

这是htdocs下的文件

htdocs

Document root

DocumentRoot "/opt/lampp/htdocs"
<Directory "/opt/lampp/htdocs">


Include etc/extra/httpd-xampp.conf
Include "/opt/lampp/apache2/conf/httpd.conf"

httpd.xampp.conf

<Directory "/opt/lampp/phpmyadmin">
   AllowOverride AuthConfig Limit
    Require all granted
    ErrorDocument 403 >/error/XAMPP_FORBIDDEN.html.var
</Directory>

apache2/conf/httpd.conf

Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"

<Directory "/opt/lampp/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

etc/extra/httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/opt/lampp/docs/dummy-host.example.com"
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error_log"
    CustomLog "logs/dummy-host.example.com-access_log" >common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/opt/lampp/docs/dummy-host2.example.com"
    ServerName dummy-host2.example.com
    ErrorLog "logs/dummy-host2.example.com-error_log"
    CustomLog "logs/dummy-host2.example.com-access_log" >common
</VirtualHost>


<VirtualHost laravel.local:80>
  DocumentRoot " 
/Users/phamminh/.bitnami/stackman/machines/xampp/volumes/root/htdocs/myProject/public"
  ServerAdmin laravel.local
  <Directory " 
/Users/phamminh/.bitnami/stackman/machines/xampp/volumes/root/htdocs/myProject">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
  </Directory>
</VirtualHost>

0 个答案:

没有答案