M
M
Maxim Uglov2016-02-27 19:38:16
PHP
Maxim Uglov, 2016-02-27 19:38:16

How to fix the server settings so that there are no such errors?

Errors like
[Sat Feb 27 19:30:02 2016] [error] [client 213.5.22.153] File does not exist: /var/www/moi-sait/data/www/moi-sait. org/biography, referer: moi-domen.net/biography/yakov-krejzer-zabitij-gene...
[Sat Feb 27 19:30:02 2016] [error] [client 213.5.22.153] File does not exist: / var/www/moi-sait/data/www/moi-sait.org/biography, referer: moi-domen.net/biography/yakov-krejzer-zabitij-gene...
[Sat Feb 27 19:30:02 2016 ] [error] [client 213.5.22.153] File does not exist: /var/www/moi-sait/data/www/moi-sait.org/biography, referer: moi-domen.net/biography/yakov-krejzer- zabitij-gene...
it is not clear why the server is trying to access the folder,
such requests are processed by the rule
RewriteRule ^[-az]+/[-a-z0-9_]+-([0-9]+).html$ details.php?id=$1 [L]
tell me what to do to stop generating such errors. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Uglov, 2016-02-27
@Vencendor

Found what was the problem.
It turns out that on the page moi-domen.net/biography/yakov-krejzer-zabitij-gene...
there were links like download.gifmissing a slash at the beginning of the link to the picture and the server is trying to download the file moi-domen.net/biography/pic/download.gif from here and accessing a non-existent folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question