Bring site down to install?


#1

When reading a user manual, it advises when deploying the new software to an existing live site, to bring the site down to normal site visitors before installing. One way given is to install a temporary password on the site so that visitors cannot access it until the update is finished.

How does one do this ‘temporary password’?


#2

[quote]When reading a user manual, it advises when deploying the new software to an existing live site, to bring the site down to normal site visitors before installing. One way given is to install a temporary password on the site so that visitors cannot access it until the update is finished.

How does one do this ‘temporary password’?[/quote]
In your home directory (path = /home/username):

make a text file called .htaccess:
$ nano ~/.htaccess

AuthType Basic AuthUserFile /home/uswername/.htpasswd AuthName Duh Require user tempmake a text file called .htpasswd:
$ htpasswd -c .htpasswd temp
New password:
Re-type new password:
Adding password for user temp[/pre]

This will apply to all web sites though, I’m not sure if your installation process would overwrite .htaccess or not…if it doesn’t you could put the .htaccess in /home/username/domain

Just delete the .htaccess or remove those line to stop requiring a password

Customer since 2000 :cool: openvein.org


#3

I usually add this to the top of the .htaccess file:

order deny,allow deny from all allow from x.x.x.xReplacing x.x.x.x with your IP.

Remember to remove those lines after the upgrade is complete.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#4

This deny,allow brings up a 403 Forbidden error message for non-authorized users. Any way to get a personallized message to display - sort of an under construction page for anyone not authorized?


#5

This ought to work for you:

http://wiki.dreamhost.com/Custom_error_pages

–rlparker
–DreamHost Tech Support