auth-user-pass
iptables -I INPUT -s 12.34.56.78 -j ACCEPT
iptables -A INPUT ! -i lo -m geoip ! --src-cc RU -m comment --comment test -j DROP
wget domain.com
--2018-04-27 16:15:20-- http://domain.com/
Resolving domain.com (domain.com)... 13.228.112.135
Connecting to domain.com (domain.com)|13.228.112.135|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://domain.com/ [following]
--2018-04-27 16:15:21-- https://domain.com/
Connecting to domain.com (domain.com)|13.228.112.135|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.domain.com/ [following]
--2018-04-27 16:15:23-- https://www.domain.com/
Resolving www.domain.com (www.domain.com)... 13.228.112.135
Connecting to www.domain.com (www.domain.com)|13.228.112.135|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’
Если добавить user_two в группу user_one, то при проверки через shell или exec - доступ к папке есть, но file_get_contents() или scan_dir() выдают: permission denied.
sudo find /var/www/ -type f -exec chmod 660 {} \;
sudo find /var/www/ -type d -exec chmod 770 {} \;
CMD ping 127.0.0.1
и затем проверьте запущен ли контейнер docker-compose ps
CMD ["nginx", "-g", "daemon off;"]
docker exec -it NAME bash
, где NAME - имя контейнера из docker-compose ps. push "route 10.8.0.5 255.255.255.255"
push redirect-gateway def1