If the machine or apache will not be running, then there isn't any way to do it locally. Setup an http server on another machine on your local net or some other location. It only has to serve one page so it doesn't have to be anything fancy. If this backup server is on your lan, just have your router forward all http traffic to that machine. If it is at a remote site, you will need to setup dns to do web fowarding to another address. Many dns services allow you do cloaking so that even though you are forwarding to one of those free websites with a long name, your visitors will not see that. If you host more than one site, avoid any mention of a particular domain since all domains will be sharing the same page. If you are just talking about one site, you just need to create a page called maint.html and put it in your document root. Edit httpd.conf and add "main.html" to the line that starts with the directive DirectoryIndex. Add maint.html BEFORE index.html because apache will look for these in the order they are here. When you're done editing, restart apache. When you are done with your maintenance, just remove or rename the maint.html file. You won't need to edit httpd.conf or restart the server because if apache doesn't find maint.html it just moves to the next one on the list which is index.html.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.