Report this

What is the reason for this report?

How should I pass Namecheap's Domain Control Validation with http and where exactly should i upload my file?

Posted on August 14, 2020

i am kinda new here. i have read https://www.namecheap.com/support/knowledgebase/article.aspx/9637/14/how-can-i-complete-the-domain-control-validation-dcv-for-my-ssl-certificate#http but it did not help me to understand where exactly should i upload file, in a root directory? http://your_domain_name.com/.well-known/pki-validation/filename.txt



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Regarding your document root, you can find it in your webserver’s configuration file. For example if you are using Nginx, you could check the Nginx server block at /etc/nginx/sites-enabled/your_site.conf.

It would usually look something like this:

    root /var/www/html/;

Then once you know your document root, then inside that directory you have to create the two folders, you can use the following command:

First cd into your document root that you’ve got from your Nginx server block:

  1. cd /var/www/html

Then create the directories:

  1. mkdir -p .well-known/pki-validation/

Then once you have the folder, you can add the filename.txt provided by NameCheap inside the .well-known/pki-validation/ folder.

Let me know if you have any questions.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.