IIS Setup let text file without extension



Enable go to the URL of the text file without extension

Last week I was trying to install the SSL certificate using Let's Encrypt open source SSL.
Using the ZeroSSL.

Inside the progress, there is one part require the user to verify the website is own by the users. To get to verify, it needs the specific link with specific content.

So in order to create the link follow the step below:

1) Create a virtual directory in IIS (Assume you know how to do it) =|
2) Setup the web config on the virtual directory by pasting the config into webconfig.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="true" />
                                    <staticContent>
             <mimeMap fileExtension="." mimeType="text/plain" />
         </staticContent>
    </system.webServer>

</configuration>

3) Done.
4) Not yet, you still need to create file  and paste the content inside, Remember remove the extension ".txt"
5) Voila , go the link and test it.


Feel free to comment below if you have better solution. I will edit this post to serve more better people who don't know how to do it. Thanks for reading =D.

Comments

Popular posts from this blog

Reading and Writing Operation of SRAM

Transmission Control Protocol (TCP)

File transfer from android to linux