VisualIdeas2019-09-12 20:19:48
VisualIdeas, 2019-09-12 20:19:48

403 Nginx error depending on filename - how so?

I'm trying to install a certificate according to the instructions https://habr.com/ru/post/270273/
But a problem arose : I'm following the

Create a file containing just this data:


And make it available on your web server at this URL:


(This must be set up in addition to the previous challenges; do not remove,
replace, or undo the previous challenge tasks yet.)

I create a file, upload it to the server and Nginx gives a 403 error. If I create the site.com/.well-known/acme-challenge/1.txt file in the same folder , then everything is fine... it opens...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
athacker, 2019-09-12

Well, apparently, when you create a file locally and when you upload it to the server, you do it under different accounts. Hence the different permissions on the file. Compare the access rights of the created and uploaded.

Andrey Gavrilov, 2019-09-13

The easiest way to install cerbot and python-certbot-nginx, run cerbot and get a certificate in 1 minute

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question