Change dns-prefetch to preconnect with correct protocol

I have this function in my functions.php file: function dns_prefetch_to_preconnect( $urls, $relation_type ) { if ( ‘dns-prefetch’ === $relation_type ) { $urls = []; } if ( ‘preconnect’ === $relation_type ) { $urls = wp_dependencies_unique_hosts(); } return $urls; } add_filter( ‘wp_resource_hints’, ‘dns_prefetch_to_preconnect’, 0, 2 ); It takes the URLs defined in wp_dependencies_unique_hosts() – which WordPress…

Details

Serving a static file for a certain user agent

I have the following config: server { listen 80; listen [::]:80; server_name example.com; return 302 https://$server_name$request_uri; } server { # SSL configuration listen 443 ssl http2; listen [::]:443 ssl http2; ssl on; ssl_certificate /etc/ssl/certs/cert.pem; ssl_certificate_key /etc/ssl/private/cert.pem; server_name example.com; root /var/www/example; index index.html; location / { if ( $http_user_agent = “Dinosaur” ) { rewrite https://example.com/ https://example.com/example.gif;…

Details

LibreSSL errors when attempting to copy extensions from CSR to x509 Cert

I’m trying to create an x509 certificate with a very specific set of x509v3 Extensions from a CSR (that already has these Extensions set). I have a CSR in PEM form (?). It looks like this: —–BEGIN CERTIFICATE REQUEST—– MIIEjDCCAnQCAQAwFT… …EQFqw== —–END CERTIFICATE REQUEST—– I’m trying to sign it by piping it through libressl (I’m…

Details