Hi,

I've been using .htaccess during maintenance window.

# pwd
/var/www/html

# cat .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^<x>\.<x>\.<x>\.<x>
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance.html [R=503,L]
ErrorDocument 503 /maintenance.html
Header Set Cache-Control "max-age=0, no-store"
</IfModule>


Line "RewriteCond %{REMOTE_ADDR} !^<x>\.<x>\.<x>\.<x>" allows access from my IP 
address for testing.

And the maintenance.html file.
# cat maintenance.html
<!DOCTYPE html>
<html>
    <head>
        <title>Down For Maintenance</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style>
        h1 { font-size: 50px; }
        body { text-align:center; font: 20px Helvetica, sans-serif; color: 
#333; }
        </style>
    </head>
    <body>
        <h1>Down For Maintenance</h1>
        <p>Sorry for the inconvenience, but we’re performing a maintenance at 
the moment.</p>
        <p>We’ll be back online shortly!</p>
    </body>
</html>


--
Thank you,

Dmitri Chebotarov
VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175 | Fax: (703) 993-3404


> On May 26, 2015, at 19:30 , Alexander Patterson 
> <[email protected]> wrote:
> 
> I was able fix this, is there an easy way to have a message display to
> everyone on the welcome screen, Where do I make this change at ?
> 
> Thanks
> 
> On Tue, May 26, 2015 at 3:52 PM, Alexander Patterson <
> [email protected]> wrote:
> 
>> What File is changed to take this off?
>> 
>> Site Currently Under Maintenance
>> The maintenance is scheduled
>> 
>> I went into my php table to make changes but it didn't stick
>> 
>> What can i change I string to change the time on this, I can not log into
>> my site as it locked me out.
>> 
>> Thanks
>> 
>> 
> 
> 
> --
> Thanks,
> Alex  Patterson
> Specialized Technology Services
> Virtual System Administrator
> California State University, East Bay

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to