Connection Refused on www.domain.com but not https://domain.com

Hello everybody,

Not sure what’s happening here but I cannot access a site from it’s URL domain.com or www.domain.com, however if I manually type https://domain.com I can.

I’ve checked the env etc - nothing stands out for me. But then again…

wordpress_sites:
  condesaelectronics.com:
    site_hosts:
      - canonical: condesaelectronics.com
        redirects:
          - www.condesaelectronics.com
    local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
    branch: master
    multisite:
      enabled: false
    ssl:
      enabled: true
      provider: manual
      cert: ~/ssl/condesaelectronics_com.crt
      key: ~/ssl/condesaelectronics_com.key
    env:
      wp_home: https://condesaelectronics.com
      wp_siteurl: https://condesaelectronics.com/wp
    cache:
      enabled: true
      duration: 300s
      skip_cache_uri: /wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml|/gear.*|/cart.*|/my-account.*|/checkout.*|/addons.*
      skip_cache_cookie: comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart|wp_woocommerce_session_|woocommerce_recently_viewed

I’m guessing you need to update the IP in DNS for www.condesaelectronics.com

Browsing to condesaelectronics.com works fine for me without typing https://. If you haven’t already, try a different browser. If it works in a different browser, you’ll already know to try clearing the original browser’s cache for the domain, and maybe clear hsts headers (notes: Trellis hsts docs, general hsts info).

cringe. 20 characters.