找不到虚拟主机url-laravel 404

时间:2018-10-04 12:03:19

标签: php laravel virtualhost

我有一个项目c:/xampp/testadmin(laravel)。我已经为其创建了虚拟主机。

<VirtualHost *:8080>
    DocumentRoot "C:/xampp/htdocs/testadmin/public"
     SetEnv APPLICATION_ENV "development"
    ServerName  mywebsitename.com
    ServerAlias mywebsitename.com
    <Directory C:/xampp/htdocs/testadmin/public>
         DirectoryIndex index.php
         AllowOverride All
         Require all granted
         Order allow,deny
         Allow from all
     </Directory>
</VirtualHost>

实际上是我的mywebsitename.com  是子域网址。现在一切正常,项目启动。但是问题是当我按下mywebsitename.com/storage/app时出现错误 找不到对象!

  

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

If you think this is a server error, please contact the webmaster.
Error 404
mywebsitename.com
Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0

但是当我按下localhost:8080/testadmin/storage/app时,它正在工作。现在我的App-URL是mywebsitename.com。如何解决此问题?

任何帮助将不胜感激。

0 个答案:

没有答案
相关问题