AWS Ubuntu系统下网站产品页404 not found nginx

gientstone 2021-06-21 16:49:57

在AWS Ubuntu系统下安装LNMP1.7环境,网站 www.homebbq.club  所有都能打开就是产品页面打不开。所有其他都排查过了,就是这个伪静态规则有问题,麻烦高手帮忙指点修改一下,多谢啦! 

 /usr/local/nginx/conf/rewrite/zencart.conf  文档伪静态规则内容如下:

location / {

if (-d $request_filename) {
break;
}
if (-f $request_filename) {
break;
}

#producttags
rewrite ^/producttags/$ /index\.php?main_page=producttags last;
rewrite ^/producttags/([-\w]+)/$ /index\.php?main_page=producttags&letter=$1&$args last;
rewrite ^/producttags/([\w])/([0-9]+).html$ /index\.php?main_page=producttags&letter=$1&page=$2&$args last;
rewrite ^/wishlist/$ /index\.php?main_page=wishlist last;
rewrite ^/wishlist/([\w])/$ /index\.php?main_page=wishlist&letter=$1&$args last;
rewrite ^/wishlist/([-\w]+)/([0-9]+).html$ /index\.php?main_page=wishlist&letter=$1&page=$2&$args last;

#products_products
rewrite ^/tags_products/$ /index\.php?main_page=tags_products last;
rewrite ^/tags_products/(.*)_([0-9]+).html$ /index\.php?main_page=tags_products&tags_name=$1&tags_id=$2&$args last;

#Enable only if using "Categories as Directories"
rewrite ^/(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)\.html$ /index\.php?main_page=product_info&products_id=$4&cpath=$2&$args last;

#Normal operation Ultimate SEO URLs
rewrite ^/(.*)-p-([0-9]+)\.html$ /index\.php?main_page=product_info&products_id=$2&$args last;

#From Ultimate SEO URLs 
rewrite ^/(.*)-p-([0-9]+)(.*)$ /index.php?main_page=product_info&products_id=$2&$args last;
rewrite ^/(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ /index.php?main_page=product_info&products_id=$2&$args last;
rewrite ^/(.*)-c-([0-9]+)_([0-9]+)/$ /index.php?main_page=index&cPath=$2_$3&$args last;
rewrite ^/(.*)-c-([0-9]+)/$ /index.php?main_page=index&cPath=$2&$args last;
rewrite ^/(.*)-m-([0-9]+)(.*)$ /index.php?main_page=index&manufacturers_id=$2&$args last;
rewrite ^/(.*)-pi-([0-9]+)(.*)$ /index.php?main_page=popup_image&pID=$2&$args last;
rewrite ^/(.*)-pr-([0-9]+)(.*)$ /index.php?main_page=product_reviews&products_id=$2&$args last;
rewrite ^/(.*)-pri-([0-9]+)(.*)$ /index.php?main_page=product_reviews_info&products_id=$2&$args last;
rewrite ^/(.*)-ezp-([0-9]+)(.*)$ /index.php?main_page=page&id=$2&$args last;

#tags_products
rewrite ^/tags_products/$ /index.php?main_page=tags_products last;
rewrite ^/tags_products/(.*)_([0-9]+).html$ /index.php?main_page=tags_products&tags_name=$1&tags_id=$2&$args last;

#For product tags
rewrite ^/producttags/$ /index.php?main_page=producttags last;
rewrite ^/producttags/(.*)/$ /index.php?main_page=producttags&letter=$1&$args last;
rewrite ^/producttags/([w])/([0-9]+).html$ /index.php?main_page=producttags&letter=$1&page=$2&$args last;

#For wishlist
rewrite ^/wishlist/$ /index.php?main_page=wishlist last;
rewrite ^/wishlist/([w])/$ /index.php?main_page=wishlist&letter=$1&$args last;
rewrite ^/wishlist/([-w]+)/([0-9]+).html$ /index.php?main_page=wishlist&letter=$1&page=$2&$args last;

#For Open Operations Info Manager
rewrite "^/(.*)-i-([0-9]+).html" /index.php?main_page=info_manager&pages_id=$2&% last;

rewrite "^(.*).html" /index.php?main_page=$1&% last;
rewrite ^/(.*)$ /index.php?main_page=$1&$args last;

...全文
3403 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
CSDN-Ada助手 2023-01-13
  • 打赏
  • 举报
回复
您可以前往 CSDN问答-操作系统 发布问题, 以便更快地解决您的疑问
内容概要:本文围绕基于三重移相控制(TPS)的双有源桥(DAB)高频隔离DC-DC变换器开展系统性研究,重点构建了其在Simulink环境下的高精度仿真模型。研究全面涵盖SPS单相移相、DPS双重重移相与TPS三重移相等多种控制策略的建模、实现与性能对比,深入分析不同模式下变换器的功率传输特性、软开关实现条件及功率回流问题,旨在提升DAB在交直流混合微电网、能量路由器、多端口柔性互联装置等场景中的转换效率与动态响应能力。通过对ZVS(零电压切换)条件的精确控制与移相角参数的优化,有效降低了开关损耗,增强了系统整体能效与运行稳定性。该仿真模型具有良好的可扩展性,适用于复杂电能转换系统的科研验证与工程开发。; 适合人群:电力电子、电气工程及其自动化等相关专业的硕士研究生、博士生、科研人员以及从事新能源变换器、柔性输配电系统设计的工程技术人员。; 使用场景及目标:①掌握双有源桥DAB变换器的基本工作原理及其在高频隔离场合的核心优势;②深入理解三重移相控制策略的设计机理、控制自由度分配及其在效率优化中的关键作用;③构建并调试可用于科研论文撰写、项目申报或实际系统验证的高保真Simulink仿真模型,支撑理论分析与实验对比。; 阅读建议:建议结合MATLAB/Simulink平台进行动手实践,重点关注主电路拓扑搭建、移相控制模块设计、驱动信号时序配置及ZVS实现条件的仿真观测,推荐通过对比SPS、DPS与TPS三种模式的稳态与动态响应曲线,深入掌握各控制策略的适用边界与优化方向。

411

社区成员

发帖
与我相关
我的任务
社区描述
AWS
社区管理员
  • AWS
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧