Window IIS builds Http file server

Window uses IIS to build http file server

1. Add a site

2. Fill in the site information

Specify the local physical path, service address (local ip), port

3. After the creation is complete, open the directory

4. Start

Then you can access it in your browser: http://172.25.13.72:8880/

But the default is only the browsing mode, and only the preview can be opened in the browser. To open the download, the following settings are required.

5. HTTP response headers

Add Name: Content-Disposition Value: attachment

Otherwise the default is to open the file for preview instead of download

Guess you like

Origin blog.csdn.net/gcf10080353/article/details/131716109