If you create the Inbound rule on the root site, its rules will appear in ApplicationHost.Config. If you create it on a site, its rules will appear in web.config. why does the rule about the root site not appear on a site like the outbound rul, It is because the inbound rule is conditional and does not apply to all sites.
There are no conditions in the outbound rule. If you create a rule in the root site, its rule will appear in ApplicationHost.Config, but it is also applicable to sub-sites, so it will also appear in sub-sites. If you are in a sub-site create an outbound rule, its rule will appear in web.config, and it will only be used for the current site, and will not appear in the root site.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.