Certain file extensions will caused attached files to return a 404 error when you attempt do download them while using IIS as a proxy.
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
User seeing the following error when downloading an attachment
診断
環境
- User using IIS
Example of File extensions
- .cs
- .csproj
- .sitemap
- .mdf
- .config
原因
This problem appears if you are using IIS as a proxy server in front of Confluence and the file you are trying to download contains a specific "filtered" extension. By default, IIS contains a filter named "Request Filtering" which prohibit access to specific files and folders.
回避策
If the file contains an extension in the list above, it's possible to allow it for download executing the following commands:
To allow downloading a file present in the in the file extensions list (i.e. '.config')
1. Open an administrator command prompt on the server hosting IIS 2. Execute the following command appcmd set config "Web app name" /section:requestFiltering /-fileExtensions.[fileextension='.config']
To allow downloading a file present in the hidden segments list (i.e. 'web.config')
1. open an administrator command prompt on the server hosting IIS 2. execute the following command appcmd set config "Web app name" /section:requestFiltering /-hiddenSegments.[segment='web.config']