【问题标题】:How to run 127.0.0.1 with port 127.0.0.1:8000 on .httaccess?如何在 .htaccess 上使用端口 127.0.0.1:8000 运行 127.0.0.1?
【发布时间】:2020-12-30 01:58:47
【问题描述】:

如何使用 nodejs 运行端口 127.0.0.1:8000 运行子域?

.htt访问码

RewriteEngine On
RewriteRule ^$ http://127.0.0.1:8080/ [P,L]
RewriteCpnd %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:8000/$1 [P,L]

但我收到错误 Internal Server Error

【问题讨论】:

    标签: node.js reactjs apache next.js


    【解决方案1】:

    .htaccess 的第三行有错字 - RewriteCpnd 实际上应该是 RewriteCond

    以后您可能会发现使用.htaccess tester 会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-05-22
      • 1970-01-01
      • 2015-02-11
      • 2021-01-27
      • 1970-01-01
      • 2021-10-03
      • 1970-01-01
      相关资源
      最近更新 更多