Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirects cause download of zero-byte file #304

Open
decisao opened this issue Dec 27, 2017 · 0 comments
Open

Redirects cause download of zero-byte file #304

decisao opened this issue Dec 27, 2017 · 0 comments

Comments

@decisao
Copy link

decisao commented Dec 27, 2017

Hi,

When I specify redirects, like this:

cloudfront_distribution_config:
      default_cache_behavior:
          min_TTL: <%= 60 * 60 * 24 * 8 %>
      http_version: http2
      aliases:
          quantity: 1
          items:
              CNAME: <mydomain>
cloudfront_invalidate_root: true
cloudfront_wildcard_invalidation: true
treat_zero_length_objects_as_redirects: true
redirects:
  contato: /atendimento.html
  atendimento: /atendimento.html
  expresso: /expresso.html
  downloads: /downloads.html

On acesse /contato it does not redirect to /atendimento.html
It downloads a zero-byte file called "contato".

Using s3_website 3.4

How to fix this?

Elieser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant