This is a discussion on Using a "Maintenance Page" Rewrite with an SSL Rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; I am trying to combine a maintenance page with SSL. The existing httpd.conf file contains the following SSL rewrite: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to combine a maintenance page with SSL.
The existing httpd.conf file contains the following SSL rewrite: RewriteCond %{SERVER_PORT} !^443$ RewriteCond %{REQUEST_URI} !^/index.html$ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L] Which, of course, rewrites all incoming requests to a secure default page. I'm trying to add a "maintenance" page using the following directives: RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ %{DOCUMENT_ROOT}/maintenance.html [L] The maintenance condition works if the SSL redirect is disabled, but the combination of the two results in being redirected to the default page (login.jsp) in a non-secure - http - method. It won't, in other words, display the maintenance page. What I want apache to do is rewrite to the maintenance page if it exists and then stop. The SSL configuration is enabled by including the configuration file, but adding the maintenance page rewrite conditions to both *.conf files does not change the results. TIA |