Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 
  • #h
  • #ht
RSS: #http

#http

  • #http2_réseau_http_webperf_clevermarks
  • #http2_webperf_server_clevermarks_http
  • #http3
  • #httpd.conf
  • #https_
  • #https-certificate-expiry
  • #https-certificate-script
  • #http/2.0
  • #http/3
  • #httperf
  • #httpwatch
  • #http-cookie
  • #http-request
  • #http-status-code
  • #httprequest
  • #http_header
  • #http_live_streaming
  • #http_public_key_pinning
  • #http_strict_transport_security
  • #httpfoundation
0 | 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200
  • @klaus
    klaus++ @klaus 11/11/2024

    Russische Zensurbehörde blockiert Cloudflare wegen Verschlüsselungsoption
    ▻https://www.heise.de/news/Blockade-durch-Zensurbehoerde-Russland-zensiert-Cloudflare-Websites-10010100.h

    Cet article sur une mesure légale russe contre la confidentialité des connexions https pose implicitement la question par quel service on protège ses serveurs contre les attaques DDOS et ses visiteurs contre l’espionnage par les états et les entreprises privées.

    Quand par exemple les serveurs d’un centre de calcul sont systématiquement configurés pour l’utilisation des serveurs DNS de Google, ils exposent les clients du centre à la surveillance par le géant états-unien.

    Les avantages des services connus de tous sont leur puissance et disponibilité assurées. Je n’ai pas encore trouvé d’alternative vraiment indépemdante et d’une qualité technique comparable aux Cloudflare, Google, Amazon ou Microsoft.

    Est-ce qu’il existe une liste de fournisseurs de DNS, CDN etc. qui sont à la fois indépendants des états et des monopoles et assez fiables pour une utilisation professionnelle ?

    L’histoire de la Crypto AG montre qu’il ne suffit pas de souscrire à un service suisse pourvêtre à l’abri de l’espionnage par_ The Usual Suspects_ .
    ►https://en.m.wikipedia.org/wiki/Crypto_AG

    8.11.2024 von Dr. Christopher Kunz - Aufgrund einer im Oktober bei Cloudflare aktivierten Option können Netz-Zensoren nun noch schlechter in verschlüsselten Web-Traffic hineinschauen.

    Russische Webseiten-Betreiber und -Nutzer sollen Abstand von Diensten des US-Anbieters Cloudflare nehmen, empfiehlt die Zensur- und Aufsichtsbehörde Roskomnadzor. Grund dafür ist die Einführung einer TLS-Erweiterung namens Encrypted Client Hello (ECH) durch Cloudflare. Die russische Aufsichtsbehörde sieht dadurch die Sicherheit im Land gefährdet, da sie nun bestimmte Webseiten nicht mehr blockieren kann. Deswegen blockiert sie rundheraus alle von Cloudflare ausgelieferten Webseiten mit ECH.

    Dessen Nutzung sei gesetzeswidrig und verstoße gegen „Technische Maßnahmen zur Bekämpfung von Bedrohungen“ ("техническими средствами противодействия угрозам"), so Rozkomnadzor in einer Mitteilung. Die ECH-Erweiterung verschlüsselt den Domainnamen beim Aufruf einer Webseite per HTTPS so, dass mithorchende Firewalls oder Zensurstellen diesen nicht mehr einsehen können, sondern lediglich eine generische Domain (im Falle Cloudflares „cloudflare-ech.com“) ermitteln. Sie ersetzt das unsichere SNI (Server Name Indication), das diesen Domainnamen unverschlüsselt zwischen Client und Server übertrug.

    Die Cloudflare-ECH-Domain blockieren russische Provider nun, sofern ein zweites Kriterium ebenfalls zutrifft: Die ECH-Protokollerweiterung ist gesetzt. Trifft eines der beiden Kriterien nicht zu, so lassen die russischen Zensurmechanismen das Paket passieren. Damit sind alle über Cloudflares CDN (Content Delivery Network) ausgelieferten Webseiten inner- und außerhalb Russlands potenziell betroffen.
    Auswirkungen unklar

    Wie groß die Auswirkungen dieser Blockade sind, ist unklar: Cloudflare hat auf eine Anfrage der heise-Redaktion bislang nicht geantwortet. Wir werden diese Meldung ergänzen, sobald eine Stellungnahme aus San Francisco eingeht.

    Nicht alle Browser unterstützen derzeit ECH. So ist die Protokollerweiterung bei Firefox standardmäßig ab Version 119, in Googles Chrome-Browser ab Version 117 aktiviert. Auch Microsofts auf Chromium basierender Edge-Browser kommt mit ECH zurecht, Safari derzeit aber offenbar nicht.
    Russische Firmen in Zugzwang

    Wer ein CDN benötige, möge sich nach einem inländischen Anbieter umsehen, so Roskomnadzors wenig überraschender Vorschlag. Um sich gegen DDoS-Angriffe zu schützen, könne man auf das „Nationale System zur Abwehr von DDoS-Angriffen“ zurückgreifen, verspricht die Behörde.

    Cloudflare-Kunden in Russland stehen jetzt vor der Wahl, wie von RKN „vorgeschlagen“ auf ein inländisches CDN umzusteigen oder die TLS-Erweiterung für ECH zu deaktivieren. Das ist hingegen für Nutzer kostenloser Cloudflare-Konten nicht möglich, denn der Anbieter versteckt die entsprechende Option offenbar hinter einem kostenpflichtigen Zusatzmodul namens „Advanced Certificate Manager“. Im Selbstversuch fanden wir beim heise-Security-Testkonto lediglich einen Schalter, um TLS 1.3 zu deaktivieren. Das bewirkt zwar ebenfalls eine Abschaltung von ECH, bringt jedoch weitere Sicherheitsnachteile mit sich und will gut überlegt sein.

    Russische Unternehmen und Experten äußerten sich gegenüber der Wirtschaftszeitung RBK unterschiedlich. So habe Cloudflare in Russland einen Marktanteil bei CDNs von 44 Prozent, schätzte Evgeny Martynov von RU-Center IT. Es gebe aber gute russische Alternativen. Der Geschäftsführer eines russischen CDN-Anbieters konstatierte gar, die meisten russischen Webseitenbetreiber hätten sich Anfang 2022 bereits von Cloudflare zurückgezogen. Er spielt damit auf den völkerrechtswidrigen russischen Angriffskrieg gegen die Ukraine an, der im Februar 2022 begann und breite westliche Sanktionen nach sich zog.

    Anderen Quellen zufolge sei gerade das Gratis-Angebot von Cloudflare nach wie vor recht beliebt in Russland. Den großen Funktionsumfang des amerikanischen CDN-Anbieters vollständig zu ersetzen, werde für manche Nutzer aufwendig und teuer, glaubt zudem ein Manager des russischen Providers Selectel.

    #https #protocoles #DNS #confidentialité #internet #espionnage

    klaus++ @klaus
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 9/10/2024
    1
    @sandburg
    1

    How to Create Trusted SSL Certificates for Your Local Development | by Hicaro Adriano | Better Programming
    ▻https://betterprogramming.pub/how-to-create-trusted-ssl-certificates-for-your-local-development

    Howto pour créer et utiliser des certificats SSL auto-signés pour le développement sur un serveur (Apache) local
    Voir aussi :
    – utilisation détaillée de OpenSSL : ▻https://docs.joshuatz.com/cheatsheets/security/self-signed-ssl-certs
    – créer voir et convertir des certificats SSL : ▻https://www.baeldung.com/openssl-self-signed-cert
    – approuver un certificat racine perso sur MacOS : ▻https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-mi
    – modifications de configuration de MAMP pour utiliser HTTPS : ▻https://stackoverflow.com/questions/54239362/how-to-set-up-ssl-for-localhost-and-virtual-hosts-with-mamp

    #OpenSSL #Apache #HTTPS #certificat_auto-signé #MAMP

    cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @fil
    Fil @fil 9/09/2022
    4
    @kent1
    @gblin
    @ericw
    @denisb
    4

    Un serveur localhost en https

    Un fois installé, cet alias permet d’aller dans n’importe quel répertoire et de taper : localhost pour ouvrir le répertoire dans un browser. Le https est indispensable pas tellement pour la sécurité (tout est en local), mais pour activer certaines API du web moderne.

    je bute toujours là-dessus quand j’en ai besoin, mais là j’ai pris les 20 minutes nécessaires pour me faire un script qui va bien, et c’était pas si affreux. Je note pour m’en ressouvenir plus tard.

    1. créer un répertoire et y enregistrer des certificats

    mkdir Sites/cert && cd Sites/cert/
    openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt

    2. Accepter le certificat
    (double-clic sur le fichier localhost.crt puis accepter tout dans le trousseau)

    3. créer un fichier cert.js contenant exactement :

    const fs = require("fs");
    module.exports = {cert: fs.readFileSync(__dirname + "/localhost.crt"), key: fs.readFileSync(__dirname + "/localhost.key")};

    4. créer un alias dans ~/.zprofile
    alias localhost="npx live-server --https=/Users/fil/Sites/cert/cert.js"

    et penser à l’activer : source ~/.zprofile

    live-server est plus cool que http-server (alternative), car il fait du hot reloading des fichiers html et css. Ses options sont documentées ici ▻https://www.npmjs.com/package/live-server

    #web #dev #https #cert #localhost #macos

    Fil @fil
    • @biggrizzly
      BigGrizzly @biggrizzly CC BY-NC-SA 9/09/2022

      Pour un serveur http nodejs si je ne m’abuse ?

      BigGrizzly @biggrizzly CC BY-NC-SA
    • @fil
      Fil @fil 9/09/2022

      Oui. La même chose en python ce serait python3 -m http.server, mais je ne sais pas faire le https dans ce cas-là, ni le hot-reload. (Et au final quelle que soit la techno employée par le serveur, ça ne change pas grand chose car on ne fait que servir des fichiers.) Je regrette que personne n’ait fait un « tout en un » qui serait auto-configuré, ce serait quand même plus simple que de devoir se taper des cert à la main.

      Fil @fil
    Écrire un commentaire
  • @afnic
    AFNIC @afnic 10/06/2022

    Le protocole HTTP fait l’objet d’une normalisation technique très active, les RFC qui spécifient officiellement HTTP viennent d’être publiés.

    Le point avec Stéphane Bortzmeyer sur notre blog ▻https://www.afnic.fr/observatoire-ressources/papier-expert/reorganisation-des-normes-techniques-http

    –----------------------------

    The HTTP protocol is the subject of very active technical standardisation, the RFCs that officially define HTTP have just been published.

    Stéphane Bortzmeyer explains it all on our blog ▻https://www.afnic.fr/en/observatory-and-resources/expert-papers/reorganisation-of-the-technical-standards-for-http

    #afnic #web #http #rfcs #rfc

    AFNIC @afnic
    Écrire un commentaire
  • @afnic
    AFNIC @afnic 27/01/2022
    1
    @ericw
    1

    https://www.afnic.fr/wp-media/uploads/2022/01/nouveau-types-DNS-1536x354.png

    ☑️ Quels sont les nouveaux types DNS pour davantage d’informations pour les logiciels client ?

    ➡️ La réponse avec notre expert Stéphane Bortzmeyer ▻https://www.afnic.fr/observatoire-ressources/papier-expert/de-nouveaux-types-dns-pour-davantage-dinformations-pour-les-logiciels-client

    –---------------------------------

    ☑️ What are the new DNS record types to give more information for client applications ?

    ➡️ The answer with our expert Stéphane Bortzmeyer ▻https://www.afnic.fr/en/observatory-and-resources/expert-papers/new-dns-record-types-to-give-more-information-for-client-applications

    #Afnic #SVCB #HTTPS #Internet #Web #DNS

    AFNIC @afnic
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 13/12/2021
    8
    @tofulm
    @fil
    @arno
    @7h36
    @monolecte
    @alexcorp
    @marcimat
    @suske
    8

    HTTP/3 is Fast. HTTP/3 is here, and it’s a big deal for… | by Todd H. Gardner | Request Metrics | Nov, 2021 | Medium
    ▻https://medium.com/request-metrics/http-3-is-fast-dc7f8871df6

    Tests commentés de performances HTTP/3 vs HTTP/2 pour 3 types de pages web.

    #HTTP/3 #QUIC #0-RTT

    cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 28/10/2021

    Do Not Confuse Web Application #firewall and Next-Generation Firewall
    ▻https://hownot2code.com/2021/10/28/do-not-confuse-web-application-firewall-and-next-generation-firewall

    GUEST POST Author David Balaban Some information security specialists confuse the concepts of #WAF and #ngfw. Moreover, even some representatives of companies manufacturing products positioned as NGFW commit this fault. “We have an NGFW, do we need a WAF?” or “Why do we need WAF?” are very common questions. This calls for figuring out the … Continue reading Do Not Confuse Web Application Firewall and Next-Generation Firewall

    #Tips_and_tricks #HTTP #OWASP #OWASP_API
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @afnic
    AFNIC @afnic 26/08/2021

    Connaitre les impacts de QUIC sur les réseaux, une conférence présentée par Isabelle Hamchaoui et Alexandre Ferrieux, ingénieurs-chercheurs Orange Labs, mardi prochain lors de la Journée du Conseil scientifique de l’Afnic 2021.

    Inscriptions sur ►https://evenements.afnic.fr/Site/176205/7477/Event

    #Internet #HTTP #Afnic #OrangeLabs #JCSA21 #QUIC

    AFNIC @afnic
    Écrire un commentaire
  • @afnic
    AFNIC @afnic 19/08/2021

    La 10ème édition de la Journée du Conseil scientifique de l’Afnic se déroulera le 31 aout ! Programme et inscriptions sur ▻https://www.afnic.fr/observatoire-ressources/agenda/jcsa21-journee-du-conseil-scientifique-de-lafnic

    #Afnic #JCSA21 #QUIC #DNS #HTTP

    AFNIC @afnic
    Écrire un commentaire
  • @afnic
    AFNIC @afnic 14/06/2021

    Le protocole de transport QUIC est désormais normalisé. Explications par Stéphane Bortzmeyer de ce qui pourrait, à terme, remplacer une grande partie des usages de TCP ▻https://www.afnic.fr/observatoire-ressources/papier-expert/le-protocole-de-transport-quic-est-desormais-normalise

    The QUIC transport protocol has now been standardised. Here are more details by Stéphane Bortzmeyer on what could replace many of the uses of TCP ▻https://www.afnic.fr/en/observatory-and-resources/expert-papers/the-quic-transport-protocol-has-now-been-standardised

    #Web #Internet #TCP #DNS #QUIC #TLS #HTTP

    AFNIC @afnic
    Écrire un commentaire
  • @stephane
    Stéphane Bortzmeyer @stephane CC BY-SA 28/05/2021
    11
    @biggrizzly
    @arno
    @02myseenthis01
    @marcimat
    @cy_altern
    @7h36
    @monolecte
    @rastapopoulos
    @linuxfr
    @alexcorp
    @fredlm
    11

    Les quatre #RFC sur le protocole de transport #QUIC viennent d’être publiés. Ce nouveau protocole de transport, concurrent de #TCP, pourrait bien devenir le transport majoritaire sur l’Internet, notamment via son utilisation dans la nouvelle version de #HTTP, HTTP/3.

    Il utilise systématiquement le #chiffrement, et chiffre même des parties du dialogue qui restaient en clair quand on utilisait #TLS sur TCP.

    ▻https://www.bortzmeyer.org/quic.html

    Stéphane Bortzmeyer @stephane CC BY-SA
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 28/05/2021

      Pour résumer les différences entre QUIC et TCP (rappelez-vous qu’ils assurent à peu près les mêmes fonctions) :
      – QUIC est systématiquement chiffré,
      – QUIC permet un vrai multiplexage ; la requête lente ne bloque pas la rapide, et la perte d’un paquet ne ralentit pas tous les ruisseaux multiplexés,
      – QUIC fusionne transport et chiffrement, ce qui permet notamment de diminuer la latence à l’établissement de la connexion,
      – QUIC permet la migration d’une connexion en cas de changement d’adresse IP

      résumé en image par Kevin Ottens. :

      https://www.bortzmeyer.org/images/sketchnotes-cdl2019.png

      Voir aussi :
      – ▻https://www.bortzmeyer.org/9000.html pour des explications plus complètes sur les problématiques et la mise en œuvre à travers l’analyse de la RFC9000.
      – ▻https://http3-explained.haxx.se/fr : la traduction française de « HTTP/3 explained »
      – HTTP/3 vs HTTP/2 : un comparatif de vitesses de chargement de 3 types de pages ▻https://seenthis.net/messages/939836

      cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @b_b
    b_b @b_b PUBLIC DOMAIN 19/03/2021
    9
    @monolecte
    @rastapopoulos
    @tofulm
    @gblin
    @cy_altern
    @astier
    @jeanmarie
    @denisb
    @realet
    9
    @jeanmarie

    #Apache #redirect www to non-www and HTTP to HTTPS — Simone Carletti
    ▻https://simonecarletti.com/blog/2016/08/redirect-domain-http-https-www-apache

    # Redirection https/www
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]

    # Redirection https/non www
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]

    ping @jeanmarie je crois que j’ai retrouvé ta source :p

    #rewrite #htaccess

    b_b @b_b PUBLIC DOMAIN
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 9/04/2021

      #redirection #mod_rewrite #RewriteRule #htaccess #réécriture_url #www #https

      cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 2/09/2020

    Utiliser Fetch - Référence Web API | MDN
    ▻https://developer.mozilla.org/fr/docs/Web/API/Fetch_API/Using_Fetch

    L’API Fetch fournit une interface JavaScript pour l’accès et la manipulation des parties de la pipeline HTTP, comme les requêtes et les réponses. Cela fournit aussi une méthode globale fetch() qui procure un moyen facile et logique de récupérer des ressources à travers le réseau de manière asynchrone.
    Ce genre de fonctionnalité était auparavant réalisé avec XMLHttpRequest. Fetch fournit une meilleure alternative qui peut être utilisée facilement par d’autres technologies comme Service Workers. Fetch fournit aussi un endroit unique et logique pour la définition d’autres concepts liés à HTTP comme CORS et les extensions d’HTTP.

    #fetch #javascript #httpRequest #asynchrone

    cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 18/08/2020

    obynio/certbot-plugin-gandi : Certbot plugin for authentication using Gandi LiveDNS
    ▻https://github.com/obynio/certbot-plugin-gandi

    Plugin Certbot pour les challenges DNS chez Gandi. Devrait fonctionner pour les certificats wildcard. Fourni aussi le cron « qui va bien » pour le renouvellement automatique

    #https #certbot #dns #Gandi #challenge #wildcard

    cy_altern @cy_altern CC BY-SA
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 18/08/2020

      ah ouais pour mon wildcard (d’un domaine chez Gandi justement), je dois renouveler tous les trois mois à la main depuis mon serveur…

      RastaPopoulos @rastapopoulos CC BY-NC
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 24/03/2020

    En-tête HTTP X-Robots-Tag
    ▻http://robots-txt.com/x-robots-tag

    les en-têtes HTTP X-Robots-Tag pour empêcher l’indexation de pages web
    (pour vérification de ces en-têtes, cf l’extension Firefox ▻https://addons.mozilla.org/fr/firefox/addon/http-header-spy par ex)

    #http_header #htaccess #X-Robots-Tag #indexation

    cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @stephane
    Stéphane Bortzmeyer @stephane CC BY-SA 1/10/2019
    1
    @cy_altern
    1

    A lot of recent articles about the #DoH (#DNS over #HTTPS) security protocol. Read carefully, there is a lot of bad faith, too.

    A set of Internet actors wrote to the US congress to complain that activation of DoH by Google may deprive them of the spying and manipulation they’re used to ▻https://www.ncta.com/sites/default/files/2019-09/Final%20DOH%20LETTER%209-19-19.pdf

    Summary of the issue in the Wall Street Journal ▻https://www.wsj.com/articles/google-draws-house-antitrust-scrutiny-of-internet-protocol-11569765637 (paywall, note how the Akamai spokeperson clearly states that they monitor DNS requests and want to continue to do so).

    ▻https://arstechnica.com/tech-policy/2019/09/isps-worry-a-new-chrome-feature-will-stop-them-from-spying-on-you (one of the few articles that do not copy blindly the discourse of the Internet operators and ISPs)

    ▻https://www.cnet.com/news/google-reportedly-under-antitrust-scrutiny-for-new-internet-protocol (based on the Wall Street Journal article, with a nice addition “cable and wireless companies being cut off from much of users’ valuable DNS surfing data”, which spills the beans.)

    ▻https://www.eff.org/deeplinks/2019/09/encrypted-dns-could-help-close-biggest-privacy-gap-internet-why-are-some-groups (#EFF opinion, with a strange idea “EFF is calling for widespread deployment of DNS over HTTPS support by Internet service providers themselves”, so asking DoH support by the very entities that you do not fully trust.)

    #privacy

    Stéphane Bortzmeyer @stephane CC BY-SA
    Écrire un commentaire
  • @simongeorges
    simongeorges @simongeorges CC BY 19/09/2019

    Sécurité : Contrebande de #HTTP, Apache Traffic Server
    ▻https://makina-corpus.com/blog/metier/2018/securite-contrebande-de-http-apache-traffic-server

    Détails de la CVE CVE-2018-8004 (Août 2018 - Apache Traffic Server).

    #Sécurité #News_Item

    simongeorges @simongeorges CC BY
    Écrire un commentaire
  • @cepcasa
    cepcasa @cepcasa CC BY-SA 6/07/2019

    How to Enable DNS-over-HTTPS (DoH) in Mozilla Firefox
    ▻https://www.trishtech.com/2018/08/how-to-enable-dns-over-https-doh-in-mozilla-firefox

    https://www.trishtech.com/wp/wp-content/uploads/2013/09/firefox-logo.jpg

    How to Enable DNS-over-HTTPS (DoH) in Mozilla Firefox

    Posted onAugust 8, 2018AuthorTrishaLeave a comment

    When you visit a website, the web browser first translates the domain name (such as yahoo.com) to the IP address using the DNS server configured in your operating system. We actually offer a free tool Public DNS Server Tool that helps you quickly configure your Windows system to use one of the publicly available DNS servers.

    But now Firefox browser (starting from version 62) has come up with a new feature called Trusted Recursive Resolver (TRR) which sets Firefox to use a secure DNS server of its own. For this feature, all the DNS resolution requests are sent over HTTPS and this is why only a DNS over HTTPS (DoH) complaint server can be used for this feature.

    Here is how you can enable DoH in Firefox browser:

    Type about:config in the address bar and press Enter.
    When warning appears, click on the I accept the risk button.
    In the search box type trr to find the settings we want.

    #dns #DoH #dnsoverhttps #https

    • #DNS
    cepcasa @cepcasa CC BY-SA
    Écrire un commentaire
  • @b_b
    b_b @b_b PUBLIC DOMAIN 1/05/2019
    4
    @kent1
    @tofulm
    @cy_altern
    @rastapopoulos
    4

    How to enable #HTTP/2 support in #Apache

    Starting from Apache 2.4.27, the Apache MPM (Multi-Processing Module) prefork no longer supports HTTP/2.To fix this, select a different MPM: event or worker. We highly recommend you to use the event prefork.
    If you are using PHP, it is likely that PHP is integrated to Apache via the mod_php module, which requires the prefork MPM. If you switch out from preform MPM, you will need to use PHP as FastCGI. To switch to php-fpm, you can do as folllwing.

    ▻https://http2.pro/doc/Apache#prefork-http2
    ▻https://httpd.apache.org/docs/2.4/fr/howto/http2.html#mpm-config

    Sur debian stretch ça donne ça (si on avait activé mpm_prefork alors que mpm_event est bien celui proposé par défaut) :

    apt install php-fpm
    a2enmod proxy_fcgi setenvif
    a2enconf php7.0-fpm
    a2dismod php7.0
    a2dismod mpm_prefork
    a2enmod mpm_event
    service apache2 restart
    apt purge libapache2-mod-php
    a2enmod http2

    #http2 #mpm_event #php-fpm

    • #PHP
    • #PHP
    b_b @b_b PUBLIC DOMAIN
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 2/05/2019

      #apache #php

      cy_altern @cy_altern CC BY-SA
    • @b_b
      b_b @b_b PUBLIC DOMAIN 2/05/2019

      Dans la foulée, deux liens à propos de l’optimisation de #php-fpm :

      Apache2 and php fpm performance optimization — Step-by-step guide

      ▻https://medium.com/@sbuckpesch/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534

      If you consistently see a large number of idle workers, you may want to lower your MinSpareServers (for the prefork MPM) or MinSpareThreads (for the worker and event MPMs) setting so that you are not sustaining a higher number of processes or threads than necessary to process your rate of traffic. Maintaining more processes or threads than you actually need will unncessarily exhaust system resources.

      ▻https://www.datadoghq.com/blog/monitoring-apache-web-server-performance

      b_b @b_b PUBLIC DOMAIN
    • @b_b
      b_b @b_b PUBLIC DOMAIN 2/05/2019

      Toujours à propos de #php-fpm, et de l’intérêt de basculer le process manager de dynamic (valeur par défaut) vers autre ondemand ou static.

      Certaines personnes recommandent d’utiliser ondemand pour ne pas avoir de process php en idle quand il n’y a pas de trafic :

      Dans mon cas j’ai 10 processus qui tournent en permanence, même si aucun de mes sites n’est visité.

      ▻https://www.guillaume-leduc.fr/une-autre-facon-dutiliser-php-fpm.html

      If you’re working on a high performance PHP setup, the ’ondemand’ PM may not be for you. In that case, it’s wise to pre-fork your PHP-FPM processes up to the maximum your server can handle. That way, all your processes are ready to serve your requests without needing to be spawned first. However, for 90% of the sites out there, the ondemand PHP-FPM configuration is better than either static or dynamic.

      ▻https://community.webcore.cloud/tutorials/php_fpm_ondemand_process_manager_vs_dynamic

      Mais comme indiqué ci-dessus, ça n’est pas forcément mieux car le process manager va devoir spawner des process alors que des process en idle permettent une réaction plus rapide en cas de pic de trafic :

      Idle process stay online waiting for traffic spikes and responding immediately, rather than having to wait on the pm to spawn children and then kill them off after x pm.process_idle_timeout expires...

      The common advice is to use pm ondemand, as is the advice in this same support thread. However, that’s even worse, because ondemand will shutdown idle processes right down to 0 when there’s little to no traffic and then you’ll end up with just as much overhead issues as traffic fluctuates.

      ▻https://haydenjames.io/php-fpm-tuning-using-pm-static-max-performance

      Mais...

      PM dynamic and especially ondemand can be save you however, when you have multiple PHP-FPM pools. For example, hosting multiple cPanel accounts or multiple websites under different pools. I have a server for example with 100+ cpanel accounts and about 200+ domains and it would be impossible for pm.static or even dynamic to perform well. Only ondemand performs well since more than two third’s of the websites receive little to no traffic and with ondemand it means all children will be shutdown saving tons of server memory!

      When it comes to PHP-FPM, once you start to serve serious traffic, ondemand and dynamic process managers for PHP-FPM can limit throughput because of the inherent overhead. Know your system and set your PHP-FPM processes to match your server’s max capacity. Start with pm.max_children set based on max usage of pm dynamic or ondemand and then increase to the point where memory and CPU can process without becoming overwhelmed. You will notice that with pm static, because you keep everything sitting in memory, traffic spikes over time cause less spikes to CPU and your server’s load and CPU averages will be smoother. The average size of your PHP-FPM process will vary per web server requiring manual tuning, thus why the more automated overhead process managers – dynamic and ondemand – are more popular recommendations.

      Grosso merdo, il semble que dynamic peut faire le job quand on ne veut pas trop se prendre la tête, ondemand quand on sait à quoi s’attendre et qu’on est juste en mémoire (ou pour du dev), et static quand on veut faire du tuning précis.

      Un bon résumé :

      In dynamic type, the number of child processes is set dynamically based on the PHP-FPM parameters in conf file. But it is a bit memory-intensive type.

      In static type, the number of child processes is fixed by pm.max_children parameter, but this type is not flexible for a server with changing web traffic. It also consumes too much memory.

      In ondemand type, the PHP-FPM processes are spawned only on demand, based on the traffic. This type helps to manage varying traffic in memory restrained servers. But the overhead increases when there is so much traffic fluctuation.

      ▻https://bobcares.com/blog/php-fpm-tuning-high-load

      Bref, comme souvent il n’y a pas de recette unique/magique :p

      Et vous les gens, vous utilisez quoi ?

      b_b @b_b PUBLIC DOMAIN
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 2/05/2019

      merci pour la sélection :)

      Sur la question ThreadPerChild vs ServerLimit : ▻https://www.liquidweb.com/kb/apache-performance-tuning-mpm-directives
      La doc apache : ▻http://httpd.apache.org/docs/2.4/mod/mpm_common.html#threadsperchild et ▻http://httpd.apache.org/docs/current/mod/mpm_common.html#maxrequestworkers
      (NB : ThreadPerChild ne peut être supérieur à ThreadLimit)

      Pour la configuration de Munin spécifique FPM + logs des requêtes lentes : ▻https://www.malekal.com/optimiser-php-fpm

      #ThreadPerChild #ServerLimit

      cy_altern @cy_altern CC BY-SA
    • @tofulm
      tofulm @tofulm 16/03/2021

      https://community.webcore.cloud/tutorials/how_to_solve_php_fpm_server_reached_max_children

      pour le calcul du max_children
      #max_children

      tofulm @tofulm
    • @b_b
      b_b @b_b PUBLIC DOMAIN 8/03/2022

      Et si on obtient l’erreur [proxy_fcgi:error] The timeout specified has expired ça n’est pas sur la conf PHP max_execution_time qu’il faut jouer, mais sur ProxyTimeout au niveau de la conf apache cf ▻http://wiki.centos-webpanel.com/apache-proxy-timeout-with-php-fpm & ▻https://www.theshell.guru/proxy_fcgierror-the-timeout-specified-has-expired-apache-2-4

      b_b @b_b PUBLIC DOMAIN
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 24/09/2022

      pour regrouper tous les outils en rapport avec les optimisation de configuration d’un serveur apache + PHP FPM, il y a aussi ►https://seenthis.net/messages/955121

      cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @simongeorges
    simongeorges @simongeorges CC BY 29/04/2019

    Contrebande de #HTTP (HTTP Smuggling) : Jetty
    ▻https://makina-corpus.com/blog/metier/2019/contrebande-de-http-http-smuggling-jetty

    Détails des failles CVE-2017-7658, CVE-2017-7657 et CVE-2017-7656 (failles publiées le 2018-06-27)

    #Security #News_Item

    simongeorges @simongeorges CC BY
    Écrire un commentaire
  • @mr_cerbere
    Mr Cerbere @mr_cerbere 28/03/2019

    Top 5 réducteurs de liens pour raccourcir vos URLs
    ▻http://ton-hebergement-gratuit.com/top-5-des-reducteurs-de-liens

    http://ton-hebergement-gratuit.com/wp-content/uploads/2019/03/http-2.jpg
    #http #webmaster

    Mr Cerbere @mr_cerbere
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 26/03/2019
    2
    @spip
    @tofulm
    2

    Guzzle, PHP HTTP client — Guzzle Documentation
    ▻http://docs.guzzlephp.org/en/stable

    Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.
    – Simple interface for building query strings, POST requests, streaming large uploads, streaming large downloads, using HTTP cookies, uploading JSON data, etc...
    – Can send both synchronous and asynchronous requests using the same interface.
    – Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops.

    (en relation avec le ticket ▻https://core.spip.net/issues/3973 de SPIP)

    #guzzle #PHP #HTTP #API #curl #SPIP

    • #PHP
    • #http
    • #PHP
    cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 13/03/2019

    What are HTTP cookies?
    ▻https://hackernoon.com/what-are-http-cookies-91359fd798b2?source=rss----3a8144eabfe3---4

    https://cdn-images-1.medium.com/max/1000/1*U5Z-NNCeXVx3knzk2MWmxA.jpeg

    Open your wallet. See a cookie in there? I do.Cookies are a way for a website to store information in your browser.gift idea for the web enthusiast in your lifeCookies in my wallet?? ?Yes, your ID is like a cookie! ?The government (issuer) provides an ID (cookie) that you store in your wallet (web browser’s storage) and take with you everywhere you go (the world is your web browser/oyster).Your ID can be used to board an airplane (request): the TSA agent will verify the validity of your ID to ensure it was provided by the government (issuer) and wasn’t forged or altered (authorization tokens are verified for validity/alteration as well). They’ll ensure you match the picture in the ID and that the name matches the ticket (authentication — “who you are”), if there are no issues you’ll be allowed (...)

    #http-cookie #browsers #what-are-http-cookies #javascript #what-are-cookies

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 11/03/2019

    Comprendre HTTP3 en 5 minutes - Je suis un dev
    ▻https://www.jesuisundev.com/comprendre-http3-en-5-minutes

    Présentation simple et rapide d’HTTP/3

    #http3 #http2 #UDP #TCP #protocole #QUIC

    cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 6/03/2019

    Standardizing HTTP API testing
    ▻https://hackernoon.com/standardizing-http-api-testing-cc7e513d4823?source=rss----3a8144eabfe3--

    https://cdn-images-1.medium.com/max/1024/0*3HWqx0wUjJalpfEk.jpg

    This blog post is actually a draft for a standard operating procedure for my software development and consulting business. I’ve come across the task of writing tests for HTTP APIs for three or four times in the last couple of months. I’ve tried multiple ways of writing automated tests and this is the method I’ve converged on. #typescript, #jest, and supertest appear to work well together and are sufficient to implement concise tests.Background and the need for standardizationYears ago most of my programming for the web was limited to PHP. Tests on those project were done by using PHPUnit and Guzzle. Later we also used Behat for more readable tests. After Docker became popular the PHP monolith evolved into an application built with multiple programming languages. Some small services are now (...)

    #javascript #rest-api-testing #http-request

    • #API
    • #http
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
0 | 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200

Thèmes liés

  • #http
  • #https
  • #https
  • technology: http
  • #tls
  • #rfc
  • #web
  • #dns
  • #clevermarks
  • #seenthis
  • #quic
  • #api
  • #apache
  • #spip
  • #internet
  • #tcp
  • #ssl
  • #afnic
  • #web
  • #news_item
  • #surveillance
  • technology: api
  • #doh
  • #php-fpm
  • technology: http
  • #http_header
  • #merci
  • #développement
  • #javascript
  • #apache
  • #http/2
  • #firefox
  • programminglanguage: php
  • technology: php
  • #htaccess
  • #letsencrypt
  • #sécurité
  • company: google
  • #serveur
  • #rest