Loading... # 404 > 由于nginx需要设置一下伪静态,在伪静态中直接添加或者nginx配置文件中添加以下代码即可: ``` # Chevereto NGINX generated rules for https://yourdomain/ # Context limits client_max_body_size 20M; # Disable access to sensitive files location ~* /(app|content|lib)/.*\.(po|php|lock|sql)$ { deny all; } # Image not found replacement location ~ \.(jpe?g|png|gif|webp)$ { log_not_found off; error_page 404 /content/images/system/default/404.gif; } # CORS header (avoids font rendering issues) location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ { add_header Access-Control-Allow-Origin "*"; } # Pretty URLs location / { index index.php; try_files $uri $uri/ /index.php$is_args$query_string; } # END Chevereto NGINX rules ``` # 502 > 由于迁移前服务器使用的php7.2版本,迁移后服务器使用的php7.3,同时我是直接复制粘贴的nginx配置,查看日志发现 `unix:/tmp/php-cgi-72.sock failed`,修改nginx配置文件即可。 修改前: ``` include enable-php-72.conf; ``` 修改后: ``` include enable-php-73.conf; ``` Last modification:December 7, 2020 © Allow specification reprint Like