title: AWS S3 object Public URL Dilemma
body: <p>I am located in <strong>Asia-Pacific(Mumbai)</strong> region. I have S3 bucket <strong><em>abc</em></strong>. <br> I have a image <strong><em>A.png</em></strong> with full public read access.</p>
  
  <p>So now URL i can use to access it from internet as suggested by AWS in AWS console is:<br> </p>
  
  <ul>
  <li><a href="https://s3.ap-south-1.amazonaws.com/abc/A.png" rel="nofollow noreferrer">https://s3.ap-south-1.amazonaws.com/abc/A.png</a></li>
  </ul>
  
  <p>I can also access Image from Following URLs as well:<br></p>
  
  <ul>
  <li><a href="https://s3-ap-south-1.amazonaws.com/abc/A.png" rel="nofollow noreferrer">https://s3-ap-south-1.amazonaws.com/abc/A.png</a></li>
  <li><a href="https://abc.s3-ap-south-1.amazonaws.com/A.png" rel="nofollow noreferrer">https://abc.s3-ap-south-1.amazonaws.com/A.png</a></li>
  </ul>
  
  <p>Now AWS Docs <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html" rel="nofollow noreferrer">here</a> Provides following info:<br>
  <a href="https://i.stack.imgur.com/NYJrS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NYJrS.png" alt="enter image description here"></a></p>
  
  <p>If my bucket is in US-East(N.Virginia), the URL format provided is </p>
  
  <ul>
  <li><a href="http://s3.amazonaws.com/abc/A.png" rel="nofollow noreferrer">http://s3.amazonaws.com/abc/A.png</a> - This URL doesn't work for my bucket <strong><em>abc</em></strong> . It gives me following Error.
  <a href="https://i.stack.imgur.com/UQnLu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UQnLu.png" alt="enter image description here"></a></li>
  </ul>
  
  <p>So my question here is, Do i need to keep in mind about the URL patterns while using public URLs in my applications? <br>Why AWS is giving different URL patterns instead of standardising one format for virtual-hosted-style and one format for path-style?</p>
  
  <p>Please let me know if i misunderstood any technical details here.</p>