Should child sites and sub-sites each have a separate key file, and how should the ownership be calculated when pushing?

📅 October 9, 2026 👁️ 11

In scenarios where link push is performed for multi-site or subdomain, whether each host should have a separate key file or can be shared depends on which level of ownership the key file proves: it proves that 'this host is controlled by you', not 'these sites belong to the same brand'. According to the regulations of the public communication channel, each subdomain is considered an independent host and a separate key file needs to be created and managed for each subdomain, so the answer is to have a separate one for each, and sharing one will fail at the ownership verification step.

Which level does the key file prove?

Before submitting the address, the recipient must confirm that the submitter has the right to represent this host. The mechanism of the key file is to place the credentials on the host so that the validator can read it through the public address: the content of the file matches the key identifier submitted, and the ownership is established. This level of determination occurs at the host level, and it has nothing to do with whether the site content is a set of templates or whether the backend is the same instance. In the brand matrix, ten sites share a set of designs, but still belong to ten host identities separate from each other.

The difference between placing it in the root directory and placing it in a subdirectory.

The rule allows two locations: under the root directory of the website, or in a publicly accessible folder on the same host, which can be read without logging in. The difference lies in the address form generated during verification - when placing in a subdirectory, the submitting side must be able to provide the corresponding path; the manifestation of a wrong path is a verification failure rather than the content being invisible. Public accessibility is a strict requirement: directories that require login, have internal network restrictions, or are blocked by exclusion rules do not meet the requirements. Conversely, this file itself does not contain sensitive content; it is just a proof of ownership and does not need to be treated as confidential material.

Why is the subdomain treated as an independent host

Because the subdomain is treated as an independent crawling object: the host names are different, robots and site-level configurations are read separately, and the index attribution is also calculated separately. The same communication channel is followed, resulting in the result of 'the main station has been verified, and the subdomain still needs to be verified separately.' Different directory-type sites under the same host are different; they share the host identity, and one key file can cover the host.

Scene Level of attribution determination Number of key files
Directory station under the root domain of the main station The same host One that can be covered
One subdomain for each brand Each subdomain has an independent host Each one is placed separately
One independent domain name for each brand The host is different Place each one separately and submit them separately
Multi-language sites are divided by language according to the path The same host One copy is enough
The host name of the test environment and production environment is the same The actual public host is the standard One copy for the production host

Store credentials according to the site or host in the multi-site background

Intranet multi-site management supports the management of multiple independent sites, suitable for multi-brand, multi-theme scenarios. When it comes to push configuration, it is recommended to store credentials according to the host dimension and perform mapping according to the site dimension: one site binds its actual external service hostname and key file path. When copying the configuration to other sites, do not bring the old host's credentials along. Common error forms are 'one set of credentials assigned to all sites', which manifests as some sites submitting successfully while subdomain sites continuously fail verification; another type of error is that the key file has been placed in a directory with login protection, resulting in failure to read publicly.

The three checks before going online

Step 1, access the address of each host's key file directly using an unlogged session, confirm that it can be read and the content is consistent with the actual submitted value. Step 2, check that this address has not been excluded by the robots configuration or rewritten by the CDN's cache rules. Step 3, submit a small number of addresses once to see if the归属 verification passes, then scale up in batches. After all three steps have passed, queue up, which saves time compared to checking failure reasons after a full batch submission.

Common questions

Question: Can multiple websites on the same server share a single key file?Answer: Check the hostname. Sites under the same hostname can be covered by path distinction; different hostnames are independent and require their own key files.

Question: Should the key file be placed in the background directory for protection?Answer: No, it must be publicly accessible. There is no point in protecting it, what really needs to be controlled is the authorization and exposure range of the background interface.

Question: What should be done after changing the subdomain naming rules?Answer: Place and submit according to the new hostname, and clean up the old hostname configuration that is no longer in use, to avoid mixed addresses that do not pass verification in the push queue.

Related articles

How many addresses can be submitted in one push, and why do the two channels give different numbers?

The maximum number of single push items varies greatly between different channels, as the two numbers answer different questions: one channel provides how many addresses can be accommodated in a single request, and the other provides the limit of each submission operation plus the daily quota floating according to the account. Since the units are different, they cannot be directly compared in size. Batch submissions should be queued by channel capacity rather than stuffing all site addresses into a single request.

2026-10-09

Why is the forced automatic update enabled after the release of a secure version instead of waiting for the administrator to manually upgrade

The official mandatory automatic update for high-risk security versions is due to the fact that the repair window cannot rely on all site administrators being online at the same time: After a vulnerability is disclosed, there is often a very short interval between the release of the patch and its widespread exploitation. Entrusting the pace to individual decisions would result in a large number of sites remaining on unprotected versions. The mandatory update addresses the coverage, but does not mean that the repair is complete - it is necessary to leave a backup before the upgrade, and after the upgrade, the server key should be rotated and the administrator password changed according to the announcement.

2026-10-09

Why does the same injection vulnerability only trigger on a certain type of database

Injection vulnerabilities are categorized by database because the escaping and syntax rules of the same concatenated query are different on different engines: one engine treats the content entered as a statement, while another may treat it as text or directly report an error in syntax. The official announcement stating 'only affects sites using a certain type of database' is due to this reason. The solution is not to change the database, but to have the query generated and parameter binding done by the data access layer.

2026-10-09

How to choose between lightweight blog programs and independent CMS, what should be considered first

When building a corporate website, the selection of a lightweight blog program and independent CMS should be based on three aspects: structure scale, capability, and applicable scenarios, not just the installation size. An open-source blog program known for its lightweight nature publicly claims to have implemented a complete plugin and template mechanism with only 7 data tables, and it natively supports Markdown. Corporate websites typically need to supplement structured content, multilingual sites, and higher concurrency load-bearing capacity.

2026-10-09

The optional section marked as optional in the model description file, when will it really be skipped?

In the site description file for large models, only the line writing the site name is necessary, and the rest of the paragraphs may be omitted; the entry line consists of a mandatory link followed by an optional colon and description. Optional paragraphs are provided for the convenience of the reader when the context is not long enough, and when skipped, they do not lose major information but secondary information, so the main link should be placed in non-optional paragraphs. This file within the station is automatically generated and kept synchronized by the content module.

2026-10-09

Should we block AI crawling, is it written in the exclusion rules or opened up another channel?

When controlling AI-based scraping programs, the Robots exclusion rules express intent rather than enforcement: they are issued according to the path and program identifiers, and rely on the scraping party to comply voluntarily. They cannot control addresses that have already been linked out, nor are they access control. When enforcement is needed, the focus should be on server-side authentication and the paths not being publicly readable; to prevent content from being moved in one piece, there are also interference codes and anti-crawling measures. The three things should not be mixed into one layer.

2026-10-09

Don't want the page to appear in the search results, is it marked in the page or written in the exclusion rules in the file?

What needs to be blocked is whether it is crawling or indexing. The exclusion rules in the file block crawling, so content cannot be read if the page cannot be accessed; the exclusion tags in the page block indexing, on the premise that the page can be crawled. Simply writing file exclusion rules does not mean it will not be included: if a blocked page has external links pointing to it elsewhere, it may still be included in the index due to link information. To ensure it does not appear, use page-level tags and make sure they can be crawled and read; the site's robots configuration is responsible for file-level crawling control, and the two work in conjunction.

2026-10-10

The website returns 502 when opened, check the program or the gateway layer first.

First, check who sent this response. 502 means that the gateway or proxy server received an invalid response from upstream, which means that the request reached the gateway and the gateway tried to forward it, but the problem is between the gateway and the program; if the gateway cannot get any response at all, it returns a 504 or similar. Troubleshooting follows three steps: bypass the gateway and directly connect to the source station port, check the gateway error logs, and check the program process and port listening. The deployment form determines which machine to perform these three steps.

2026-10-10