• Login
  • Register

Community Dashboard

Our community dashboard tracks activity and engagement from community members across a wide variety of sources, including, the DNN forum, Twitter, GitHub, StackOverflow, etc.
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 31 Jan 2022 10:16 AM by  Mawadda Abuhamda
Adding a folder with a “.” in its name for file validation in Windows Server
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages


New Member


Posts:9
New Member


--
31 Jan 2022 10:16 AM
    You normally can’t create a folder with the . character. One way to do it, though, is to add a . at the beginning and at the end of the folder name.
    Another way to do it is to change the working directory to the C drive and then run this command:
    “mkdir .well-known/pki-validation.”

    ___________________________________________________________________________________________________________________
    Article from https://www.xolphin.com/s...te_well-known_folder
    Using file validation it is required to place a file on a specific folder location on the web server. The location needs to be an hidden directory, usually this is done by adding a dot in front of the folder name. Simply adding a dot in front of the folder name is not possible within Windows Server. There are two workarounds:
    End with a dot
    1. Create a new folder within the file structure of your (web)server and name it ".well-known.", do not forget the dot at the end.
    2. The folder is now reachable via the internet.
    Virtual Directory
    1. Create a folder on the C-drive, name it “well-known”. In the recent created folder create another folder named pki-validation. Example:
    C:\well-known\pki-validation
    2. Place the text file in the “pki-validation” folder.
    3. Open the IIS Manager on the server, right click on your site and select Add Virtual Directory....
    4. In the Alias entry fill in “.well-known” and in the Psychical Path entry fill in the path to the Well Known folder. Example:
    C:\well-known
    5. End with OK, the folder and files within should work properly now.

    ____________________________________________________________________________________________________________
    Article from https://superuser.com/que...-windows-server-2012
    The following should accomplish your objective:
    • First, via command line, change the working directory to your c: drive:
    • cd c:
    • Second, staying on the command line, create the proper directory using something similar to the following:
    • mkdir .well-known/pki-validation
    I am assuming this is for a domain ownership verification challenge. To be clear, the general proper path for these kinds of challenges is the document root (wherever your website files live) which is typically not c:.
    You are not authorized to post a reply.