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

Handle upstream errors with errors directive #1897

Closed
jahands opened this issue Sep 29, 2017 · 3 comments
Closed

Handle upstream errors with errors directive #1897

jahands opened this issue Sep 29, 2017 · 3 comments
Labels
duplicate 🖇️ This issue or pull request already exists feature ⚙️ New feature or request

Comments

@jahands
Copy link

jahands commented Sep 29, 2017

This is a feature request and may be out of scope / a bad idea.

I posted this question on the forum: https://caddy.community/t/errors-page-for-proxied-requests/2800
I want to be able to handle errors of upstream proxied requests.

proxy / https://jac.nyc3.digitaloceanspaces.com {
    header_upstream Host jac.nyc3.digitaloceanspaces.com
}
errors {
    403 404.html
}

The reason I want to do this is to hide the bucket name of my DigitalOcean Spaces (S3 clone) bucket.

@mholt mholt added the feature ⚙️ New feature or request label Sep 29, 2017
@francislavoie
Copy link
Member

I think this is a duplicate of a few others: #1447, #753 and should probably be covered by #1639 when it's implemented

@jahands
Copy link
Author

jahands commented Sep 30, 2017 via email

@mholt
Copy link
Member

mholt commented Sep 30, 2017

Cool. Thanks for the feature request! Closing in favor of the earlier issue instead.

@mholt mholt closed this as completed Sep 30, 2017
@mholt mholt added the duplicate 🖇️ This issue or pull request already exists label Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🖇️ This issue or pull request already exists feature ⚙️ New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants