资讯专栏INFORMATION COLUMN

How to serve uncommon file in WebDAV using IIS in

silencezwm / 2767人阅读

Introduction

We are using a cross-platform web password manager, and this manager is deployed in our own on promised cloud. Although it supports Dropbox, Google Drive, One Drive, our network does not allow them. So, the issue comes, the data file need be stored somewhere in the network. Then the only choice left is WebDAV.

Some Issues

This password manager requires SSL.
Web serving involves HTTP response configuration.
The data file is not common type.

Procedure Turn on IIS

Add Web Server (IIS) server role and install the following additional feature
WebDAV Publishing
Centrailized SSL Certificate Support

Configure IIS Generate Self-Signed Certificate

Goto IIS Manager

Open Server Certificates

Click Create Self-Signed Certificate

Select Web Hosting for the certificate store

Enable SSL

Goto the site

Click Bindings

Add a new site binding with type https, select the SSL certificate just created.

WebDAV Authorization

Goto the site

Open WebDAV Authoring Rules

Add new rule as you prefer

Serve Uncommon File

Goto the site

Open MIME Types

Add new entry with the file extension and tyope application/octet-stream

Optional HTTP Response Headers Configuration

Add Access-Control-Allow-Origin with value * to solve "No Access-Control-Allow-Origin header is present Or Working With Cross Origin Request".
Add Access-Control-Allow-Headers with value Content-Type to solve "Request header field Access-Control-Allow-Headers is not allowed by Access-Control-Allow-Headers in preflight response".
For me, I need to add another value Cache-Control for Access-Control-Allow-Headers as required by the password manager.

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/61595.html

相关文章

  • 转发:How To Configure Logging and Log Rotation in Ng

    原文地址:https://www.digitalocean.com/... 另一种直接使用nginx配置文件的方案:http://www.cambus.net/log-rot... Logging in Nginx One of the easiest ways to save yourself trouble with your web server is to configure appro...

    AndroidTraveler 评论0 收藏0
  • ApacheBench(ab)工具测试Web性能压力

    摘要:网站性能压力测试是性能调优过程中必不可少的一环。对请求附加一个行。对一个中转代理提供认证信任。设置属性的字符串缺陷程序中有各种静态声明的固定长度的缓冲区。注本文为转载原文地址总结性能压力测试工具之相关文章网站性能测试使用教程 网站性能压力测试是性能调优过程中必不可少的一环。只有让服务器处在高压情况下才能真正体现出各种设置所暴露的问题。Apache中有个自带的,名为ab的程序,可以对Ap...

    kelvinlee 评论0 收藏0
  • ApacheBench(ab)工具测试Web性能压力

    摘要:网站性能压力测试是性能调优过程中必不可少的一环。对请求附加一个行。对一个中转代理提供认证信任。设置属性的字符串缺陷程序中有各种静态声明的固定长度的缓冲区。注本文为转载原文地址总结性能压力测试工具之相关文章网站性能测试使用教程 网站性能压力测试是性能调优过程中必不可少的一环。只有让服务器处在高压情况下才能真正体现出各种设置所暴露的问题。Apache中有个自带的,名为ab的程序,可以对Ap...

    tomlingtm 评论0 收藏0
  • JAVA服务器概述

    摘要:尽管大多数的服务器有支持脚本语言的插件,通过这些脚本语言,比如,,,可以产生动态的内容,但是服务器大多数旨在为静态页面服务。 Java服务器   作为Java工程师,服务器对于我们的开发工作很重要,将我们开发好的项目放到服务器上用户才可以使用。我们常用到的服务器有Tomcat、Apache、Nginx等等。对于我们所开发的应用,如何选择合适的服务器是个问题。下面简单的介绍Web服务器、...

    PAMPANG 评论0 收藏0
  • JAVA服务器概述

    摘要:尽管大多数的服务器有支持脚本语言的插件,通过这些脚本语言,比如,,,可以产生动态的内容,但是服务器大多数旨在为静态页面服务。 Java服务器   作为Java工程师,服务器对于我们的开发工作很重要,将我们开发好的项目放到服务器上用户才可以使用。我们常用到的服务器有Tomcat、Apache、Nginx等等。对于我们所开发的应用,如何选择合适的服务器是个问题。下面简单的介绍Web服务器、...

    付永刚 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<