双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

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

gientstone gientstone 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

在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;

...全文

相关推荐

基于django开发的cms网站

基于django开发的cms网站,开始使用前先阅读readme.cmd文件。建议使用Python虚拟环境。

helmer_hanssen

Ubuntu 16.04下Nginx Server Block深度解析与生产避坑指南

Nginx Server Block 是 Web 服务器实现虚拟主机的核心机制,其本质是基于请求头(Host)、监听端口(listen)和文件路径(root/alias)的多维路由决策系统。不同于 Apache VirtualHost 的声明式配置,它依赖精确匹配优先级、location 匹配算法(=、^~、~)及系统级约束(如 systemd 文件句柄限制、AppArmor 路径白名单、OpenSSL 1.0.2g 的 TLS 协议兼容性)共同生效。理解其工作原理,对保障静态资源服务、反向代理(proxy

weixin_34293911

企业数字化转型AI大模型赋能智能体平台及AI场景应用规划方案(生态合作版).pptx

企业数字化转型AI大模型赋能智能体平台及AI场景应用规划方案(生态合作版).pptx

公众号:优享智库

MCGS的Http协议驱动,支持http协议

硬件配置 参数设置 设备属性 设备命令 通讯状态 附录 #HTTP 1、 设备简介 驱动类型 该驱动为独立设备,直接添加构件即可,不需要挂载到父设备下 通讯协议 采用标准HTTP1.1协议 通讯方式 驱动构件为客户端。 2、 硬件连接 本软件在通讯之前,请保证通讯连接正确。通讯连接方式:采用标准的RJ45接口的以太网接线(对调网线或使用HUB交换)。 3、 设备通讯参数 本设备为独立设备,无父设备参数 4、 设备构件参数设置 “HTTP设备”参数设置如下: <1> 内部属性: 构建url信息。 <2> 最小采集周期:本软件对设备进行操作的时间周期,单位为ms,默认为100ms。 <3> 通讯等待时间:通讯数据接收等待时间,默认设置为200ms,当采集速度要求较高或数据量较大时,设置值可适当减小或增大。 <4> HttpHead:http head添加需要的字段,不需要添加http head时值为空,默认不添加。 5、 设备命令 本设备构件提供设备命令,用于进行相应的操作,设备命令的格式如下: 设备命令 命令介绍 GetHttpHead 格式1 GetHttpHead(headStr) 用途 获取http head参数 参数 headStr 参数可以为字符型变量、字符串常量 例1 !SetDevice(设备0,6,"GetHttpHead(headStr)") 获取http head数据保存到headStr中 SetHttpHead 格式1 SetHttpHead(headStr) 用途 设置http head参数 参数 headStr 参数可以为字符型变量、字符串常量

weixin_37963577

印尼稻米收成与粮食安全数据集2026年

本数据集收录印度尼西亚2026年水稻收成与粮食安全遥测数据,包含10000条稻米农业收成产量与粮食安全监测记录,围绕印尼国家粮食安全体系中的核心作物水稻展开。稻米是印尼逾两亿人口的主粮,其收成波动直接影响国家粮食安全与进口政策,本数据集将种植区域、收成产量、气候与土壤相关遥测指标整合为结构化表格,可支撑粮食产量预测、收成影响因素分析、区域粮食安全评估与农业政策模拟等研究任务。典型应用场景包括:农业时间序列产量预测模型构建、气候因子与水稻收成的关联分析、省份与地区层面的粮食自给率测算、粮食安全风险预警指标设计,也可作为农业经济、粮食政策与数据科学交叉课程的教学素材。数据为2026年最新版,规模约1.2MB、单CSV结构规整,字段命名清晰,适合Python、Pandas、Scikit-learn等主流工具链直接使用,便于开展探索性分析、可视化与机器学习全流程练习。重要说明:本数据为遥测整理数据,分析结论以数据集文档口径为准,农业决策请结合官方统计综合研判。许可:CC0公有领域,可自由使用与二次分发。

licy__
评论 1
收藏 已收藏
分享
返回顶部
gientstone
AWS 411 成员 535 内容