Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I use Spring MVC + Apache tomcat + Apache httpd and I am seeking for best practices in order to redirect all http requests to a page indicating to my users that the website is in maintenance. FYI, my website will be hosted on Cloudfoundry.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I think a good solution is to use a simple .htaccess to redirect the requests.

share|improve this answer
    
Thanks Aurelio. Do I have to restart httpd in order for changes to it to be picked up? –  balteo Sep 11 '12 at 13:17
    
@balteo Usually this depends on your Apache configuration. If you aren't sure of your config, just restart ;) –  Aurelio De Rosa Sep 11 '12 at 13:28
add comment

Your Answer

 
discard

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.