[GH-ISSUE #1240] 使用0.27.0版本的自定义404页面,404页面会按照txt解析出来,而不是html #977

Closed
opened 2026-05-05 12:37:53 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @ooiuv on GitHub (May 9, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1240

使用0.27.0版本的自定义404页面,404页面会按照txt解析出来,而不是html

就是把原本html页面的内容,完整的以文本格式展示出来了。

Originally created by @ooiuv on GitHub (May 9, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1240 使用0.27.0版本的自定义404页面,404页面会按照txt解析出来,而不是html 就是把原本html页面的内容,完整的以文本格式展示出来了。
Author
Owner

@ooiuv commented on GitHub (May 9, 2019):

对比了自带404页面,发现html的head元素里面,没有加下面配置,所以造成以text打开!

<!-- gh-comment-id:490776525 --> @ooiuv commented on GitHub (May 9, 2019): 对比了自带404页面,发现html的head元素里面,没有加下面配置,所以造成以text打开! <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Author
Owner

@ooiuv commented on GitHub (Dec 27, 2019):

指定当前的页面是html 浏览器就会按照html的格式去解析

李寻欢 notifications@github.com 于2019年7月13日周六 上午9:28写道:

emmmmmm
下面配置是啥配置啊??


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fatedier/frp/issues/1240?email_source=notifications&email_token=AELTHY5JTIXI2ZYKMOEL5LDP7EVUXA5CNFSM4HLW7TQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3GM4I#issuecomment-511075953,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELTHY7VS766HQPAWCZWBF3P7EVUXANCNFSM4HLW7TQQ
.

<!-- gh-comment-id:569190060 --> @ooiuv commented on GitHub (Dec 27, 2019): 指定当前的页面是html 浏览器就会按照html的格式去解析 李寻欢 <notifications@github.com> 于2019年7月13日周六 上午9:28写道: > emmmmmm > 下面配置是啥配置啊?? > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > <https://github.com/fatedier/frp/issues/1240?email_source=notifications&email_token=AELTHY5JTIXI2ZYKMOEL5LDP7EVUXA5CNFSM4HLW7TQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3GM4I#issuecomment-511075953>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AELTHY7VS766HQPAWCZWBF3P7EVUXANCNFSM4HLW7TQQ> > . >
Author
Owner

@qqq1162934083 commented on GitHub (Feb 22, 2020):

对比了自带404页面,发现html的head元素里面,没有加下面配置,所以造成以text打开!

没有加下面配置,到底是什么配置能方便说一下啊

<!-- gh-comment-id:589920009 --> @qqq1162934083 commented on GitHub (Feb 22, 2020): > 对比了自带404页面,发现html的head元素里面,没有加下面配置,所以造成以text打开! 没有加下面配置,到底是什么配置能方便说一下啊
Author
Owner

@ooiuv commented on GitHub (Apr 19, 2020):

就是字head里面声明html类型

qqq1162934083 notifications@github.com 于2020年2月22日周六 下午1:15写道:

对比了自带404页面,发现html的head元素里面,没有加下面配置,所以造成以text打开!

没有加下面配置,到底是什么配置能方便说一下啊


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fatedier/frp/issues/1240?email_source=notifications&email_token=AELTHY5HDXY27H7X7PHRPDTRECYGZA5CNFSM4HLW7TQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMUXOCI#issuecomment-589920009,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AELTHY7HLKUJXELQEKPSX4DRECYGZANCNFSM4HLW7TQQ
.

<!-- gh-comment-id:616058841 --> @ooiuv commented on GitHub (Apr 19, 2020): 就是字head里面声明html类型 qqq1162934083 <notifications@github.com> 于2020年2月22日周六 下午1:15写道: > 对比了自带404页面,发现html的head元素里面,没有加下面配置,所以造成以text打开! > > 没有加下面配置,到底是什么配置能方便说一下啊 > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > <https://github.com/fatedier/frp/issues/1240?email_source=notifications&email_token=AELTHY5HDXY27H7X7PHRPDTRECYGZA5CNFSM4HLW7TQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMUXOCI#issuecomment-589920009>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AELTHY7HLKUJXELQEKPSX4DRECYGZANCNFSM4HLW7TQQ> > . >
Author
Owner

@adi291 commented on GitHub (Oct 20, 2020):

同一个问题另一个原因。html是正确的,如果用notepad++这类编辑器,文件不能用utf-8 BOM 编码,必须用 utf-8 编码。

<!-- gh-comment-id:712630488 --> @adi291 commented on GitHub (Oct 20, 2020): 同一个问题另一个原因。html是正确的,如果用notepad++这类编辑器,文件不能用utf-8 BOM 编码,必须用 utf-8 编码。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#977
No description provided.