Using a "Maintenance Page" Rewrite with an SSL Rewrite

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2008
warren.weiss@gmail.com
 
Posts: n/a
Default Using a "Maintenance Page" Rewrite with an SSL Rewrite

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0