mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1674] 同一端口多个子域名http穿透中规定404html页面,html页面被解析为源码,不做网页呈现(已解决) #1324
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qqq1162934083 on GitHub (Feb 22, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1674
本话题是我在提问的过程中解决的,误打误撞解决的,希望能帮到大家,望页主误删
错误原因和解决方案在最下面↓↓↓↓
What version of frp are you using (./frpc -v or ./frps -v)?
版本号:
frps 0.31.2
frpc 0.31.2
What operating system and processor architecture are you using (
go env)?操作平台:
windows64
Configures you used:
Frps配置:
[common]
bind_port = [xxxxxxxx]
vhost_http_port = 80
token = [xxxxxxxx]
dashboard_port = [xxxxxxxx]
dashboard_user = [xxxxxxxx]
dashboard_pwd = [xxxxxxxx]
custom_404_page = [xxxxxxxx]\404.html
Frpc配置:
[common]
server_addr = [xxxxxxxx]
server_port = [xxxxxxxx]
token = [xxxxxxxx]
admin_addr = 127.0.0.1
admin_port = [xxxxxxxx]
admin_user = admin
admin_pwd = admin
[WEB]
type = http
local_ip = 127.0.0.1
local_port = 80
custom_domains = test.[xxxxxxxx].cn
Steps to reproduce the issue:
1.确保[xxxxxxxx]\404.html存在
2.使用以上配置配置Frps和Frpc并启动
3.通过子域名test.[xxxxxxxx].cn可以正常访问网页
4.关闭Frpc
5.再次访问test.[xxxxxxxx].cn,弹出404页面
6.404页面为404.html源码,而非解析html后的内容
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
错误原因:
404.html编码有问题
当使用桌面右键新建文本文档然后更改扩展名文html的方式不可行,将显示页面文本
通过其他方式直接创建保存为html将能够正常展示该页面
解决方法:
建议创建该文件时使用notepad++创建,不要使用桌面右键新建文本然后改扩展名为html,本人第一次使用右键的方式,然后一直出现显示源码的问题,找了很久也没找到解决方法,在创建该提问时误打误撞解决了,于是写下这篇心得