Hi, I have a share hosting plan. I was using FastCgi and I could disable my website with capistrano adding a system/maintenance.html page, but recently I started using a Mongrel cluster and now I can not disable the site. What should I do?
2008-08-26 11:01 PM
Rahul
Posts: 496
Starts: 0
Wiki Edits: 1
Hello,
There is no way to put the maintenance page when your site is working on mongrel. This is because the http request gets proxied to your mongrel port and any redirections set in apache server are not effective in this scenario.
2008-08-27 12:26 AM
Regards,
Rahul
Vanhalen
Posts: 8
Starts: 4
Wiki Edits: 2
I think there is a way, but it has to be specified in the virtual host in the httpd.conf file. http://bealetech.com/articles/2007/08/02/deploying-ruby-on-rails-with-capistrano-to-apache-2-2-and-mongrel Is it possible to edit this if a have a share hosting plan?
2008-08-27 01:01 AM
Rahul
Posts: 496
Starts: 0
Wiki Edits: 1
I checked the link that you have posted and saw these lines that can satify your requiremenst. == RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] ==
We can put them in the apache configuration file. Can you put your maintenance.html page in the app's home directory. We will test this out...
2008-08-27 01:42 AM
Regards,
Rahul
Vanhalen
Posts: 8
Starts: 4
Wiki Edits: 2
Sure, but I placed it in system/maintenance.html, not home directory.
2008-08-27 02:24 AM
Rahul
Posts: 496
Starts: 0
Wiki Edits: 1
Yeah..its working fine. Thanks for your inputs. Please do continue posting such tidbits which are helpful for improving our Hosting performance and quality..
2008-08-27 02:36 AM
Regards,
Rahul
Hello Guest! In order to post you must be an active client with us, please log in or sign up today!