https://blog.csdn.net/yoywow/article/details/52153610

不管是Nginx还是Apache,如果不配置,都会出现404,不能路由.

我云服务器安装的是WDCP,默认的Nginx配置文件 
nginx/conf/vhost/00000.default.conf 
用vim编辑 
在server {}里加上

location / { try_files $uri $uri/ /index.php?$query_string; }

然后保存,重启nginxd

wdcp初始化的几个后台进程都在init.d这个文件夹下.

httpd mysqld nginxd php-fpm pureftpd wdapache

如果项目涉及读写操作,注意改变项目文件权限777,可读可写可执行~

官方入口: 
https://laravel.com/docs/5.0/installation#pretty-urls

 

相关文章:

  • 2021-05-16
  • 2021-08-11
  • 2022-12-23
  • 2021-08-12
  • 2021-08-06
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-07-29
  • 2021-11-24
  • 2021-05-27
  • 2021-04-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案