Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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



share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.)

share|improve this answer
Ya, that's what I figures. Thanks. –  Pardoner Feb 8 '13 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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