Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
移除非必要的robots.txt相关内容
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Jan 17, 2024
1 parent 978f3b8 commit d2690e4
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 37 deletions.
2 changes: 0 additions & 2 deletions english/443.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ http {
return 302 https://$host$request_uri;
}
# There is no need to return robots.txt separately; the panel already contains the file.
# Start reverse proxy
# Proxy Daemon
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
Expand Down
2 changes: 0 additions & 2 deletions english/http-merge-ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ http {
# If the link you are accessing uses a public IP address directly, enter the public IP address here.
server_name domain.com *.domain.com ;
# There is no need to return robots.txt separately; the panel already contains the file.
# Start reverse proxy
# Proxy Daemon
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
Expand Down
2 changes: 0 additions & 2 deletions english/https-merge-ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ http {
# HTTP redirect to HTTPS
error_page 497 https://$host:$server_port$request_uri;
# There is no need to return robots.txt separately; the panel already contains the file.
# Start reverse proxy
# Proxy Daemon
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
Expand Down
8 changes: 0 additions & 8 deletions english/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ http {
# If the link you are accessing uses a public IP address directly, enter the public IP address here.
server_name domain.com *.domain.com ;
# Return robots.txt to prevent search engine indexing
location =/robots.txt{
default_type text/plain;
return 200 "User-agent: *\nDisallow: /";
}
# Start reverse proxy
location / {
# Fill in the port number that the Daemon end truly listens to, and do not add a slash after it!
Expand Down Expand Up @@ -164,8 +158,6 @@ http {
# HTTP redirect to HTTPS
error_page 497 https://$host:$server_port$request_uri;
# There is no need to return robots.txt separately; the panel already contains the file.
# Start reverse proxy
location / {
# Enter the number of the port monitored by the Web panel
Expand Down
10 changes: 1 addition & 9 deletions generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,6 @@ ${buildconf_listen('','::',ConfS.daemonproxyport())}
# 如果你访问时的链接直接使用公网IP,那么此处填写公网IP。
server_name ${ConfS.domain()} ;
# 返回 robots.txt 以防止搜索引擎收录
location =/robots.txt{
default_type text/plain;
return 200 "User-agent: *\\nDisallow: /";
}
# 开始反向代理
location / {
# 填写Daemon端真正监听的端口号
Expand Down Expand Up @@ -497,9 +491,7 @@ ${ConfS.https() ?` # 前面已经写了默认ssl配置,因此这里并
# HTTP跳转到HTTPS
error_page 497 https://$host:$server_port$request_uri;
`:''} # 此处无需单独返回 robots.txt ,面板已包含该文件。
# 开始反向代理
`:''} # 开始反向代理
${ConfS.mergeports() ?` # 代理Daemon端
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
# 填写Daemon端真正监听的端口号,后面不能加斜杠!
Expand Down
2 changes: 0 additions & 2 deletions 为同一主机的443端口配置HTTPS反向代理.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ http {
return 302 https://$host$request_uri;
}
# 此处无需单独返回 robots.txt ,面板已包含该文件。
# 开始反向代理
# 代理Daemon端
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
Expand Down
8 changes: 0 additions & 8 deletions 配置HTTPS反向代理.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ http {
# 如果你访问时的链接直接使用公网IP,那么此处填写公网IP。
server_name domain.com *.domain.com ;
# 返回 robots.txt 以防止搜索引擎收录
location =/robots.txt{
default_type text/plain;
return 200 "User-agent: *\nDisallow: /";
}
# 开始反向代理
location / {
# 填写Daemon端真正监听的端口号
Expand Down Expand Up @@ -175,8 +169,6 @@ http {
# HTTP跳转到HTTPS
error_page 497 https://$host:$server_port$request_uri;
# 此处无需单独返回 robots.txt ,面板已包含该文件。
# 开始反向代理
location / {
# 填写Web面板端真正监听的端口号
Expand Down
2 changes: 0 additions & 2 deletions 配置HTTPS反向代理且合并端口.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ http {
# HTTP跳转到HTTPS
error_page 497 https://$host:$server_port$request_uri;
# 此处无需单独返回 robots.txt ,面板已包含该文件。
# 开始反向代理
# 代理Daemon端
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
Expand Down
2 changes: 0 additions & 2 deletions 配置HTTP反向代理且合并端口.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ http {
# 如果你访问时的链接直接使用公网IP,那么此处填写公网IP。
server_name domain.com *.domain.com ;
# 此处无需单独返回 robots.txt ,面板已包含该文件。
# 开始反向代理
# 代理Daemon端
location ~ (^/socket.io/)|(^/upload/)|(^/download/) {
Expand Down

0 comments on commit d2690e4

Please sign in to comment.