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

403 Nginx error depending on filename - how so?

Situation:
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
script:

Create a file containing just this data:

UHpp6vlo9m-KUx4JuBwt9WaMH_l7Ngu8bF0Mnt6GTEk.FfrdYPepaZiFBQ51SZGQAe19taAzuN9AnBRoZLUdAoI

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

http://site.com/.well-known/acme-challenge/UHpp6vlo9m-KUx4JuBwt9WaMH_l7Ngu8bF0Mnt6GTEk

(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)
A
athacker, 2019-09-12
@athacker

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.

A
Andrey Gavrilov, 2019-09-13
@thexaver

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