title: Paperclip and amazon s3 - Connection refused, port 443
body: <p>I'm trying to setup paperclip with s3 on development but get:</p>
  
  <p><code>Connection refused - connect(2) for "bjjbase.com.s3-website-us-west-2.amazonaws.com" port 443</code></p>
  
  <p>My aws.yml:</p>
  
  <pre><code>development:
    access_key_id: xxxxxxxxxx
    secret_access_key: xxxxxxxxx
  </code></pre>
  
  <p>IAM User with these tokens has <code>AmazonS3FullAccess</code></p>
  
  <p>development.rb:</p>
  
  <pre><code>config.paperclip_defaults = {
    :storage =&gt; :s3,
    :s3_host_name =&gt; 'bjjbase.com.s3-website-us-west-2.amazonaws.com',
    :s3_credentials =&gt; {
      :bucket =&gt; 'bjjbase.com'
    }
  </code></pre>
  
  <p>Not sure if it's important but my machine is in Warsaw, Poland.</p>