0

I have the following in my nginx config file.

error_page 503 http:path-to-my.rackcdn.com/maintenance.html;

Which servers up a static html file stored on Rackspace Cloudfiles. What I don't like is how the url changes to ...rackcdn.com. I'd rather rewrite the url so the domains appears to have stayed the same. Is it possible to rewrite error page url to something like

mydomain/maintanence

Thanks.

1 Answer 1

1

Sorry, but in order to not have a client redirected to an external URL, you will have to host the file on your local filesystem. (Though any images, CSS etc. that it might load can remain on the CDN.)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.