How can I fix Laravel 5.1 - 404 Not Found?

前端 未结 6 1372
小鲜肉
小鲜肉 2020-12-29 11:30

I am trying to use Laravel 5.1 for the first time. I was able to install it and https://sub.example.com/laravel/public/ is displaying what is should. However, v

6条回答
  •  一个人的身影
    2020-12-29 11:58

    If you are running Apache HTTPD 2.2.15 on Linux (CentOS 6.7 in my case), then the directory directive will look like this

    
        Options Indexes FollowSymLinks Includes ExecCGI  
        AllowOverride All  
        allow from all  
      
    

    You probably don't need the Options line though, unless you're using those options.

    Thank you to the 2.4 answer. It helped me solve this issue for me on 2.2 and I have another server running 2.4 I can apply it to too.

提交回复
热议问题