0

I've been following the following guide to control whether or not to display a maintenance page.

https://www.shellhacks.com/redirect-site-maintenance-page-apache-htaccess/

I would only like Apache to re-direct new connections to the maintenance page though, users currently on the site should be able to continue as normal until they close connection. How would I do this in Apache?

AfroThundr
  • 1,175
  • 2
  • 17
  • 28
Anton Rand
  • 322
  • 5
  • 20
  • What do you mean about the connection? The current HTTP connection or the current session on the site? –  Jun 22 '17 at 18:29

1 Answers1

1

.htaccess is constantly read and applied, so you can't do it with .htaccess

But your description fits perfectly with a new configuration change "elsewhere" other than htaccess, which needs a restart.

Apache has a "graceful restart" in which active connections get the old config while new connections get the new config.

Daniel Ferradal
  • 2,727
  • 1
  • 13
  • 19