首页 > 解决方案 > 将 .htacees 指向使用 SSL 配置的节点服务器

问题描述

我在 .htacess 文件中使用以下配置

# RewriteRule ^(.*)?$ http://127.0.0.1:3001/$1 [P,L] 
# RewriteRule ^(.*)?$ https://127.0.0.1:3001/$1 [P,L]

当我在节点服务器中添加 SSL 配置并使用 https 模块时,URL 返回 503 services not found 但在我删除 SSL 并使用 http 模块时工作正常。

标签: node.js.htaccesshttpssl

解决方案


通过删除解决了问题

RewriteRule ^(.*)?$ http://127.0.0.1:3001/$1 [P,L] 

推荐阅读