<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Apache and Lighttpd server send error 503 when web site is under maintenance</title> <atom:link href="http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Preet</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-179036</link> <dc:creator>Preet</dc:creator> <pubDate>Tue, 07 Feb 2012 07:35:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-179036</guid> <description>The &quot;something&quot; can be ascecsed very easily with PHP.  If you have a web page address that looks like this:index.php? month=september&amp;name=smith&amp;age=24Then you can access those values in PHP like this:&lt;?phpecho $_GET(&#039;month&#039;);echo $_GET(&#039;name&#039;);echo $_GET(&#039;age&#039;);?&gt;This will print septembersmith24.As for accessing a text file, that&#039;s easy too:&lt;?php$text = file_get_contents( &#039;textfile.txt&#039; );echo $text;?&gt;This will read the entire contents of the file textfile.txt into the variable $text, and then print it out for you.You can also access many databases with PHP, I highly recommend you use MySQL.  It&#039;s a bit too complicated to describe here, though.  There are some good references made to good books by folks above.  The &quot;Teach Yourself&quot; series is great.</description> <content:encoded><![CDATA[<p>The &quot;something&quot; can be ascecsed very easily with PHP.  If you have a web page address that looks like this:index.php? month=september&amp;name=smith&amp;age=24Then you can access those values in PHP like this:&lt;?phpecho $_GET(&#039;month&#039;);echo $_GET(&#039;name&#039;);echo $_GET(&#039;age&#039;);?&gt;This will print septembersmith24.As for accessing a text file, that&#039;s easy too:&lt;?php$text = file_get_contents( &#039;textfile.txt&#039; );echo $text;?&gt;This will read the entire contents of the file textfile.txt into the variable $text, and then print it out for you.You can also access many databases with PHP, I highly recommend you use MySQL.  It&#039;s a bit too complicated to describe here, though.  There are some good references made to good books by folks above.  The &quot;Teach Yourself&quot; series is great.</p> ]]></content:encoded> </item> <item><title>By: Max</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-178759</link> <dc:creator>Max</dc:creator> <pubDate>Wed, 18 Jan 2012 17:04:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-178759</guid> <description>Good idea! In this case, we simply took the site down for a few hours so a 503 probably wasn’t necessary. Great suggestion for longer cases though.
Thanks!</description> <content:encoded><![CDATA[<p>Good idea! In this case, we simply took the site down for a few hours so a 503 probably wasn’t necessary. Great suggestion for longer cases though.</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-145376</link> <dc:creator>Anonymous</dc:creator> <pubDate>Sat, 25 Oct 2008 18:11:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-145376</guid> <description>Wow, thanks alot! I&#039;ve been wondering how to do this for ages!</description> <content:encoded><![CDATA[<p>Wow, thanks alot! I&#8217;ve been wondering how to do this for ages!</p> ]]></content:encoded> </item> <item><title>By: Frederick</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-144472</link> <dc:creator>Frederick</dc:creator> <pubDate>Fri, 25 Jul 2008 20:31:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-144472</guid> <description>A better .htaccess rule might be:
&lt;code&gt;
RewriteEngine On
RewriteCond %{REQUEST_URI} !down.php$
RewriteRule ^(.*)$ /down.php [L]
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>A better .htaccess rule might be:</p><p><code><br
/> RewriteEngine On<br
/> RewriteCond %{REQUEST_URI} !down.php$<br
/> RewriteRule ^(.*)$ /down.php [L]<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-140220</link> <dc:creator>vivek</dc:creator> <pubDate>Fri, 15 Jun 2007 10:35:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-140220</guid> <description>Do you have other rewrite rules? if so add this rule before those rules</description> <content:encoded><![CDATA[<p>Do you have other rewrite rules? if so add this rule before those rules</p> ]]></content:encoded> </item> <item><title>By: Carl</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-140209</link> <dc:creator>Carl</dc:creator> <pubDate>Thu, 14 Jun 2007 13:58:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-140209</guid> <description>I have tried to use your method, but only the main page and a page one level deeper redirect successfully. If I go any deeper down a valid URL it does not display the site down page.</description> <content:encoded><![CDATA[<p>I have tried to use your method, but only the main page and a page one level deeper redirect successfully. If I go any deeper down a valid URL it does not display the site down page.</p> ]]></content:encoded> </item> <item><title>By: Sagri</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-136807</link> <dc:creator>Sagri</dc:creator> <pubDate>Fri, 11 May 2007 10:39:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-136807</guid> <description>Hi,
Thats very efficient way of costimising error pages.
Do you know the way to do the same on tomcat alone with out web server. ie; with out apache.
I use only tomcat 5.5.12 and I want to customise my 503 pages when I am updating.
Thanks in advance.</description> <content:encoded><![CDATA[<p>Hi,<br
/> Thats very efficient way of costimising error pages.</p><p> Do you know the way to do the same on tomcat alone with out web server. ie; with out apache.</p><p> I use only tomcat 5.5.12 and I want to customise my 503 pages when I am updating.</p><p>Thanks in advance.</p> ]]></content:encoded> </item> <item><title>By: sangamnath</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-102084</link> <dc:creator>sangamnath</dc:creator> <pubDate>Fri, 30 Mar 2007 11:05:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-102084</guid> <description>Hi, i am getting the error 503 when i am importing the data to the client side.i am really not understanding wats the reason behind this.So please can any one help me out to solve this problem.Thanks in advance....</description> <content:encoded><![CDATA[<p>Hi, i am getting the error 503 when i am importing the data to the client side.i am really not understanding wats the reason behind this.So please can any one help me out to solve this problem.Thanks in advance&#8230;.</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-52486</link> <dc:creator>nixcraft</dc:creator> <pubDate>Sat, 06 Jan 2007 11:13:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-52486</guid> <description>Jerry,
No .htaccess rule is correct. If file is not down.php it will display content of down.php for all site urls and sub directories.
Hope this helps.</description> <content:encoded><![CDATA[<p>Jerry,</p><p>No .htaccess rule is correct. If file is not down.php it will display content of down.php for all site urls and sub directories.</p><p>Hope this helps.</p> ]]></content:encoded> </item> <item><title>By: Jerry</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-52476</link> <dc:creator>Jerry</dc:creator> <pubDate>Sat, 06 Jan 2007 10:50:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-52476</guid> <description>I&#039;m just learning to hack .htaccess and use mod_rewrite.  It looks to me like this line:
RewriteRule !down.php$ /down.php [L]
only catches URLs to the root directory?  How can I redirect all URLs, even URLs to subdirectories deeper in the site, so all URLs get a 503 maintenance page?
Thanks.</description> <content:encoded><![CDATA[<p>I&#8217;m just learning to hack .htaccess and use mod_rewrite.  It looks to me like this line:</p><p>RewriteRule !down.php$ /down.php [L]</p><p>only catches URLs to the root directory?  How can I redirect all URLs, even URLs to subdirectories deeper in the site, so all URLs get a 503 maintenance page?</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: Daniel</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-48994</link> <dc:creator>Daniel</dc:creator> <pubDate>Mon, 01 Jan 2007 14:49:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-48994</guid> <description>Do you need to restart Apache after modifying .htaccess? I think not. I you were changing httpd.conf I would agree.</description> <content:encoded><![CDATA[<p>Do you need to restart Apache after modifying .htaccess? I think not. I you were changing httpd.conf I would agree.</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-47821</link> <dc:creator>nixcraft</dc:creator> <pubDate>Sat, 30 Dec 2006 01:22:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-47821</guid> <description>Good idea; For lighttpd
&lt;code&gt;lighttpd -t -f /etc/lighttpd.conf &amp;&amp; /etc/init.d/lighttpd restart &lt;/code&gt;
Appreciate your post.</description> <content:encoded><![CDATA[<p>Good idea; For lighttpd<br
/> <code>lighttpd -t -f /etc/lighttpd.conf &#038;&#038; /etc/init.d/lighttpd restart </code></p><p>Appreciate your post.</p> ]]></content:encoded> </item> <item><title>By: Lars Noodén</title><link>http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-47611</link> <dc:creator>Lars Noodén</dc:creator> <pubDate>Fri, 29 Dec 2006 12:26:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-disable-site-for-maintenance-with-503-error.html#comment-47611</guid> <description>Good tips, but if the site is really important then the step on Restarting Apache 2 web server after saving and closing the file needs to verify that the syntax of the configuration file is correct.  There are many ways mistakes or typos can be introduced, any of which will bring the server down.
# /etc/init.d/httpd restart
or
# /etc/init.d/apache2 restart
One should do a configuration test first. e.g.
# /etc/init.d/apache2 configtest &amp;&amp; \
# /etc/init.d/apache2 reload
or
/usr/sbin/apache2ctl -t -f /etc/apache2.conf &amp;&amp; \
/usr/sbin/apache2ctl -f /etc/apach2.conf graceful</description> <content:encoded><![CDATA[<p>Good tips, but if the site is really important then the step on Restarting Apache 2 web server after saving and closing the file needs to verify that the syntax of the configuration file is correct.  There are many ways mistakes or typos can be introduced, any of which will bring the server down.</p><p># /etc/init.d/httpd restart<br
/> or<br
/> # /etc/init.d/apache2 restart</p><p>One should do a configuration test first. e.g.</p><p># /etc/init.d/apache2 configtest &amp;&amp; \<br
/> # /etc/init.d/apache2 reload</p><p>or<br
/> /usr/sbin/apache2ctl -t -f /etc/apache2.conf &amp;&amp; \<br
/> /usr/sbin/apache2ctl -f /etc/apach2.conf graceful</p> ]]></content:encoded> </item> </channel> </rss>
