Nginx服务器环境下安装ShopWind系统如果出现404/500错误如下图所示:
这个主要是伪静态规则没有配置好,解决办法是配置如下伪静态规则:
location / {
**#Redirect everything that isn't a real file to index.php**
try_files **$ uri** **$uri**/ /index.php**$ is**_args**$args**;
}
**#If you want a single domain name at the front and back ends**
location /admin {
try_files **$ uri** **$uri**/ /admin/index.php**$ is**_args**$args**;
}
location /mobile {
try_files **$ uri** **$uri**/ /mobile/index.php**$ is**_args**$args**;
}