• Перезагрузка фрагмента страницы по триггеру?

    @i_want_to_know_everything Автор вопроса
    GreatRash: про чат я сразу подумал и подгуглил как оно устроено, может плохо смотрел, но именно на php + js там везде постоянная перезагрузка через какой нибудь setInterval или фрейм + meta refresh

    что создает постоянное обновление фрагмента, мне же хочется только при определенном действии это делать
  • 2 ip ведут на один сайт?

    @i_want_to_know_everything Автор вопроса
    Алексей:
    PHP-FPM
    стандартно
    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }


    proxy
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;


    Установка стандартная, настройки то же, на godaddy при таком же конфиге, все работает правильно
  • Ошибка SQL запроса?

    @i_want_to_know_everything Автор вопроса
    Спасибо, я в принципе циклом это дело и прогнал, хотелось понять причину
  • Нет соединения по SHH через Putty?

    @i_want_to_know_everything Автор вопроса
    Ivan: Спасибо за участие. Не хочет оно так делать.
    Свободно залез туда через тимвювер с американского компа с чистого Putty, хостер godaddy, сервер там же. Вероятно ip мой попадает под какой то там диапазон в блэклисте.
  • Нет соединения по SHH через Putty?

    @i_want_to_know_everything Автор вопроса
    Ivan: ну такой рецепт для лога у меня не работает,
    веду логи так
    9f17079431.jpg
    и для текущего соединения не создается
    с конфигом протупил вот
    # Package generated configuration file
    # See the sshd_config(5) manpage for details
    
    # What ports, IPs and protocols we listen for
    Port 22
    # Use these options to restrict which interfaces/protocols sshd will bind to
    #ListenAddress ::
    #ListenAddress 0.0.0.0
    Protocol 2
    # HostKeys for protocol version 2
    HostKey /etc/ssh/ssh_host_rsa_key
    HostKey /etc/ssh/ssh_host_dsa_key
    HostKey /etc/ssh/ssh_host_ecdsa_key
    HostKey /etc/ssh/ssh_host_ed25519_key
    #Privilege Separation is turned on for security
    UsePrivilegeSeparation yes
    
    # Lifetime and size of ephemeral version 1 server key
    KeyRegenerationInterval 3600
    ServerKeyBits 1024
    
    # Logging
    SyslogFacility AUTH
    LogLevel INFO
    
    # Authentication:
    LoginGraceTime 120
    PermitRootLogin yes
    StrictModes yes
    
    RSAAuthentication yes
    PubkeyAuthentication yes
    #AuthorizedKeysFile	%h/.ssh/authorized_keys
    
    # Don't read the user's ~/.rhosts and ~/.shosts files
    IgnoreRhosts yes
    # For this to work you will also need host keys in /etc/ssh_known_hosts
    RhostsRSAAuthentication no
    # similar for protocol version 2
    HostbasedAuthentication no
    # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
    #IgnoreUserKnownHosts yes
    
    # To enable empty passwords, change to yes (NOT RECOMMENDED)
    PermitEmptyPasswords no
    
    # Change to yes to enable challenge-response passwords (beware issues with
    # some PAM modules and threads)
    ChallengeResponseAuthentication no
    
    # Change to no to disable tunnelled clear text passwords
    #PasswordAuthentication yes
    
    # Kerberos options
    #KerberosAuthentication no
    #KerberosGetAFSToken no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes
    
    # GSSAPI options
    #GSSAPIAuthentication no
    #GSSAPICleanupCredentials yes
    
    X11Forwarding yes
    X11DisplayOffset 10
    PrintMotd no
    PrintLastLog yes
    TCPKeepAlive yes
    #UseLogin no
    
    #MaxStartups 10:30:60
    #Banner /etc/issue.net
    
    # Allow client to pass locale environment variables
    AcceptEnv LANG LC_*
    
    Subsystem sftp /usr/lib/openssh/sftp-server
    
    # Set this to 'yes' to enable PAM authentication, account processing,
    # and session processing. If this is enabled, PAM authentication will
    # be allowed through the ChallengeResponseAuthentication and
    # PasswordAuthentication.  Depending on your PAM configuration,
    # PAM authentication via ChallengeResponseAuthentication may bypass
    # the setting of "PermitRootLogin without-password".
    # If you just want the PAM account and session checks to run without
    # PAM authentication, then enable this but set PasswordAuthentication
    # and ChallengeResponseAuthentication to 'no'.
    UsePAM yes
  • Нет соединения по SHH через Putty?

    @i_want_to_know_everything Автор вопроса
    Ivan@:
    sshd_config - дефолтный
    # This is the ssh client system-wide configuration file.  See
    # ssh_config(5) for more information.  This file provides defaults for
    # users, and the values can be changed in per-user configuration files
    # or on the command line.
    
    # Configuration data is parsed as follows:
    #  1. command line options
    #  2. user-specific file
    #  3. system-wide file
    # Any configuration value is only changed the first time it is set.
    # Thus, host-specific definitions should be at the beginning of the
    # configuration file, and defaults at the end.
    
    # Site-wide defaults for some commonly used options.  For a comprehensive
    # list of available options, their meanings and defaults, please see the
    # ssh_config(5) man page.
    
    Host *
    #   ForwardAgent no
    #   ForwardX11 no
    #   ForwardX11Trusted yes
    #   RhostsRSAAuthentication no
    #   RSAAuthentication yes
    #   PasswordAuthentication yes
    #   HostbasedAuthentication no
    #   GSSAPIAuthentication no
    #   GSSAPIDelegateCredentials no
    #   GSSAPIKeyExchange no
    #   GSSAPITrustDNS no
    #   BatchMode no
    #   CheckHostIP yes
    #   AddressFamily any
    #   ConnectTimeout 0
    #   StrictHostKeyChecking ask
    #   IdentityFile ~/.ssh/identity
    #   IdentityFile ~/.ssh/id_rsa
    #   IdentityFile ~/.ssh/id_dsa
    #   Port 22
    #   Protocol 2,1
    #   Cipher 3des
    #   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
    #   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
    #   EscapeChar ~
    #   Tunnel no
    #   TunnelDevice any:any
    #   PermitLocalCommand no
    #   VisualHostKey no
    #   ProxyCommand ssh -q -W %h:%p gateway.example.com
    #   RekeyLimit 1G 1h
        SendEnv LANG LC_*
        HashKnownHosts yes
        GSSAPIAuthentication yes
        GSSAPIDelegateCredentials no
    <code>
    
    А лог для данного соединения даже не создается
  • Нет соединения по SHH через Putty?

    @i_want_to_know_everything Автор вопроса
    и под рутом и не под рутом
  • Сортировка вложенного объекта js?

    @i_want_to_know_everything Автор вопроса
    Виталий: есть в js аналог php функции array_values?
  • Сортировка вложенного объекта js?

    @i_want_to_know_everything Автор вопроса
    Виталий: ну я сделал вот так, но мне надо сбросить индексы до 0,1,2 а как правильно не знаю https://jsfiddle.net/jemrLLt9/2/ , у меня получается с разворотом
  • JQuery ui slider установка значения?

    @i_want_to_know_everything Автор вопроса
    rework:
    1. сделал я это сам, ответил раньше,
    2. есть такая вероятность, что это было сделано одновременно, в таком случае спасибо за участие
  • JQuery ui slider установка значения?

    @i_want_to_know_everything Автор вопроса
    rework: стесняюсь спросить, в чем она заключалась? В том, что бы указать мне на мое же решение, после того, как я указал в вопросе его и написал, что вопрос закрыт?
  • JQuery ui slider установка значения?

    @i_want_to_know_everything Автор вопроса
    rework: ну это я как бы сам и сделал
  • Mikrotik в режиме repeater?

    @i_want_to_know_everything Автор вопроса
    1. Это и так понятно, что не так настроено, скринов и конфиг репортов могу всяких выложить, однако ниже Дмитрий Шицков , и этого хватило.
    2. WIFI сигнал
    3. Я в курсе 20 это порезано
    4. Я переконфигурировал, что бы понять что иннет на нем есть, и отдается.

    В любом случае, спасибо за участие.
  • Mikrotik в режиме repeater?

    @i_want_to_know_everything Автор вопроса
    На устройствах, да низкий уровень
    Между ними 2 кирпичные стены
    По шнурку от репитера 20mb

    С отключеным репитером, уровень сигнала на устройствах тот же, что и с подключённым
  • Mikrotik в режиме repeater?

    @i_want_to_know_everything Автор вопроса
    репитер, т.к нет возможности тянуть шнурок.

    Сформулировал, вопрос кривовато.
    Не видят устройства репитер, сеть показывает одну, а WIFI сигнал он похоже не усиливает, хотя если подключаться на него через пачкорд, все весело и бодро.
  • Wordpress настройка ЧПУ?

    @i_want_to_know_everything Автор вопроса
    Алексей Тен: Добавил в вопрос
  • Как поправить код, чтобв работал одновременно?

    @i_want_to_know_everything Автор вопроса
    Dark Hole: Ок, спасибо, понял, это я в учебных целях разбираюсь как оно вообще устроено , это код из туториала из сети.
  • Как поправить код, чтобв работал одновременно?

    @i_want_to_know_everything Автор вопроса
    Максим Тимофеев: Там получается, что слайдер показывает сначала 1 слайдер, затем второй, затем опять первый, и. т. д
    Надо что бы показывали сразу оба, синхронно.
  • Http/2 nginx падает сервер?

    @i_want_to_know_everything Автор вопроса
    Платон Платонович: если убираю
    ssl_ciphers HIGH:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!EXP:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
    	ssl_prefer_server_ciphers on;
    	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    все работает, в чем может бвть причина?
  • Http/2 nginx падает сервер?

    @i_want_to_know_everything Автор вопроса
    Платон Платонович: убивал, что такое патчить не понятно, но да nginx стоит крайняя версия с поддержкой http/2,
    ответ от netstat -nlpt добавил в вопрос, вроде как все как надо