What is path style vs virtual style
- Views:
- 52
- Visibility:
- Public
- Votes:
- 0
- Category:
- storagegrid
- Specialty:
- sgrid
- Last Updated:
- 5/15/2025, 6:04:28 PM
Applies to
- StorageGRID
- AWS
Answer
- Virtual hosted style requests have the bucket as part of the subdomain instead of the URL path (see below for examples)
- Virtual hosted style example:
https://bucket_name.s3.testdomain.com/object_key
- Path style example:
https://s3.testdomain.com/bucket_name/object_key"
- Virtual hosted style example:
Virtual-hosted-style:
- Uses a virtual-hosted-style URL to access the bucket.
- Virtual hosted-style is now the default method for AWS S3.
- StorageGRID and many applications still support path style, it is best practice to implement virtual hosted-style support.
- Virtual-hosted-style URLs include the bucket name as part of the domain name.
- If you choose to use a domain name instead, it is recommended to use the "Virtual Hosted-Style URL" for StorageGRID.
- Example:
https://bucket_name.s3.company.com/key-name
- Example:
bucket.domain.domain.domain
- Example:
- It can support wildcard DNS lookups as well
- Example:
*.s3.company.com
- Example:
- Information over configuring virtual hosted style: Configure S3 endpoint domain names
- Only populate the S3 endpoint domain page if virtual style is needed for the environment.
Path-style:
- Use a path-style URL to access the bucket.
- The "Path-Style URL" is the default URL style used by clients when configuring StorageGRID.
- Path-style URLs include the bucket name at the end.
- This style is used when you provide an IP address instead of a domain name for the Server name (FQDN) field.
- Example: https://s3.company.com/bucket_name/key-name
- Example: domain.domain.domain/bucket
- Note: The path-style URL option is not recommended and will be deprecated in a future release of StorageGRID.
Additional Information
N/A