sfd
403 forbidden nginx как исправить
Ошибка "403 Forbidden" в Nginx означает, что веб-сервер Nginx получил запрос на доступ к определенному ресурсу, но отказал в доступе. Это не ошибка сервера как таковая (в отличие от 5xx ошибок), а скорее намеренный отказ в доступе. Вот основные причины и способы исправить эту ошибку: I. Основные причины ошибки 403 Forbidden: II. Способы исправления ошибки 403 Forbidden: sudo chmod -R 755 /var/www/html/каталоги sudo chmod 644 /var/www/html/файлы ... index index.html index.php; ... } Перезагрузите Nginx: sudo nginx -t # Проверка синтаксиса конфигурационного файла sudo systemctl reload nginx Проверьте, не запрещено ли листинг каталогов: server { ...
📈 Прокси dockerhub 📈 #docker Прокси до hub.docker.com Этот прокси можно использовать, если вы получаете ошибку Error response from daemon: pull access denied for nginx, repository does not exist or may require 'docker login': denied: <html><body><h1>403 Forbidden</h1> Since Docker is a US company, we must comply with US export control regulations. In an effort to comply with these, we now block all IP addresses that are located in Cuba, Iran, North Korea, Republic of Crimea, Sudan, and Syria. If you are not in one of these cities, countries, or regions and are blocked, please reach out to https://hub.docker.com/support/contact/ </body></html> Как его подключить: 1. Через конфиг докера (как зеркало docker.io) расположен в: Linux, regular setup - /etc/docker/daemon.json Linux, rootless mode - ~/.config/docker/daemon.json Windows - C:\ProgramData\docker\config\daemon.json Windows с Docker Desktop - C:\Users\<Пользователь>\.docker\daemon.json конфиг: { "registry-mirrors" : [ "https://dockerhub.timeweb.cloud" ] } теперь при попытке загрузки образа, докер будет сначала пытаться использовать прокси 2. Явное указание адреса docker pull dockerhub.timeweb.cloud/library/alpine:latest Спасибо коллегам из timeweb, за оперативную помощь! 🌚 @poxek