当先锋百科网

首页 1 2 3 4 5 6 7

How To Build an IIS Server on WINDOWS 11 and Transform Files Between IOS and WINDOWS Using WebDav?

Internet Information Services ('2S) is an extensible web server created by Microsoft for use with the Windows NT family.[2] IIS supports HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP and NNTP. It has been an integral part of the Windows NT family since Windows NT 4.0, though it may be absent from some editions (e.g. Windows XP Home edition), and is not active by default. IIS in WIKI

Step 1. Build an IIS server on WINDOWS 11

Firstly, we should start the IIS manager on Windows.

Control Panel --> Add or Remove Programs --> Windows Features --> And Check if Internet Information Services is installed with at least the ‘Web Administration Tools’ Enabled and The ‘World Wide Web Service’

(img-vamYrT2c-1681373105589)(./assets/image-20230413151249793.png)]

After installing and restarting, you will find Internet Information Services Manager in your start menu.

Step 2. Start the IIS server

Open the IIS manager, right-click [Default Web Site], and add [virtual directory], add name and physical path.

Here we just add a virtual directory at the default web site using the default port: 80. The name you give the virtual directory will be a part of the link, such as http://158.132.6.156/name/; The path will be the folder you want to share.

(img-WqPXN5VO-1681373105590)(./assets/image-20230413153245669.png)]

[(img-fmi2if9Q-1681373105591)(./assets/image-20230413152326812.png)]

After that, click Default Web Site–>WebDav authoring rules–>Enable WebDAV

(img-tiSvWBwN-1681373105591)(./assets/image-20230413152552999.png)]](https://img-blog.csdnimg.cn/e4c76db27d5d4836a6a68717f2f3451a.png)

Click the new added virtual directory–>WebDav authoring rules–>Add authoring rule

(img-Qj0eCNM5-1681373105592)(./assets/image-20230413152734114.png)]](https://img-blog.csdnimg.cn/72d074d47dbf4b0da646ac7401b30565.png)

Before this, be sure you give your shared documents an everyone authority(Right-click the folder, property, Safety, add Everyone and complete control).

在这里插入图片描述

Click new added virtual directory–>authentication–>Start Basic authentication

在这里插入图片描述

Click new added virtual directory–> catalogue browsing–>Start

在这里插入图片描述

Finally, right-click Default Web Site–>manage website–>restart website.

Now you have successfully started your local website! You can visit it by:

http://IP Address//virtual directory name/. For example:http://158.132.6.156/happy/

The username and password is the Email you log in your WINDOWS and its password.

Step 3 Send files from iPhone to Windows

Settings–>Agency

在这里插入图片描述

Close the dedicated agent.

在这里插入图片描述

Download apps that support WebDav such as Documents:

在这里插入图片描述

After adding your link, you can send file to your windows folder.

Questions and solve

If you want to use another port, you can right-click [website] and [add new website], and remember using IP address, don’t set the hostname. Then using the method in step 2.

在这里插入图片描述

After that, you maybe could only visit the web on your computer, but can not from other device in your LAN. You can add new rules for port: Firewall and network protection–>Advanced setting

在这里插入图片描述

在这里插入图片描述

Add rules for both Incoming and Outcoming rule.

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

Then Finish.

How to upload large files?

Some times when you upload large files, it will show ‘413 ERROR’. You can edit the regedit to solve it.

win+R–>regedit–>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services[WebClient](https://so.csdn.net/so/search?q=WebClient&spm=1001.2101.3001.7020)\Parameters

在这里插入图片描述

right-click [FileSizeLimitInBytes], edit the max value to ffffffff for [hexadecimal], then restart.

Useful Link:

Start IIS on Windows

Edit max upload value

Video