Clarify `trusted_domains` setting
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- apache
- Lĩnh vực
- documentation
Hướng nghiên cứu
Mở phần cấu hình “Trusted Domains” được liên kết trong Nextcloud Admin Manual và xem lại hướng dẫn của phần này về virtual hosting. Làm rõ rằng chỉ nên liệt kê domain phù hợp khi các virtual host dùng chung một Apache server, đồng thời nêu rõ rằng có thể cần xóa các mục mặc định như localhost và 127.0.0.1. Hoàn tất khi cảnh báo được nêu rõ ràng và khớp với hành vi cấu hình đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
> It does, however, run a check against each of your configured `trusted_domains` [...]
If one of the listed domains returns a 200 code, that error will appear. [...]
Usually this is when people discover they have many unnecessary domains in their config [...]
You were right. That was the culprit.
I am using virtual hosting with several sub-domains on a single Apache server with the same IP address. One sub-domain is cloud.my-domain.tld (for NC), photos.my-domain.tld (for Lychee) and www.my-domain.tld (which only serves an imprint and other required legal information).
I had the following entries for trusted_domains:
'trusted_domains' => array (
0 => 'localhost',
1 => '127.0.0.1',
2 => '[::1]',
3 => '<my-public-IPv4-address>',
4 => '<my-public-IPv6-address>',
5 => 'cloud.my-domain.tld',
),
localhost and 127.0.0.1 had been listed by default and I added [::1] as well as my public IP addresses. However, if a client connected to any of those, the Apache server redirect the request to the default sub-domain www.my-domain.tld which serves the imprint. I removed every entry but the last one. Now the error disappeared again.
Maybe there should be an explicit hint at NC Admin Manual: Configuration Parameters - Trusted Domains that for virtual hosting only the proper domain should be listed. In particular, with virtual hosting the default entries localhost and 127.0.0.1 must be removed.
Originally posted by @nagmat84 in https://github.com/nextcloud/server/issues/46381#issuecomment-2223538864
- Ngôn ngữ chính
- JavaScript
- Star
- 633
- Fork
- 2.6k
- Merge trung bình
- 22 giờ 40 phút
- Pull request đã merge (30 ngày)
- 93
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/documentation
-
0. needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nextcloud/documentation#15702 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. needs triage enhancement manual: developer security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/documentation#15693 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. needs triage bug developer experience manual: developer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nextcloud/documentation#15690 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Developer manual: mention the org's appstore-build-publish workflowCó thể đã có người làm @whoalin1 đã nhận 11 ngày trước. Đang mở0. needs triage developer experience enhancement good first issue manual: developer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nextcloud/documentation#15687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Developer manual: what to clean up on uninstall in repair.rstCó thể đã có người làm @whoalin1 đã nhận 11 ngày trước. Đang mở0. needs triage enhancement good first issue manual: developer
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
nextcloud/documentation#15685 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/documentation
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
keyxmakerx/Chronicle#1532 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement feature good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug lsp sev-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
学习模式 / 答疑模式在 DSH 0.2.1-rc.2 上必失败:unknown prompt variable "{{cwd}}"Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Miaotofu01/Study-Mate#206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Uuriko/project-room#3998 ·
Maintainer thường phản hồi trong vòng 1 ngày